summaryrefslogtreecommitdiff
path: root/ext/xmlwriter/tests
diff options
context:
space:
mode:
authorRob Richards <rrichards@php.net>2007-01-06 18:03:43 +0000
committerRob Richards <rrichards@php.net>2007-01-06 18:03:43 +0000
commit57792acabc29f73e4ac3580f7ec2bc748afbb278 (patch)
tree39d04272ab23b6c2dd585f9cf2e99b452bd390c4 /ext/xmlwriter/tests
parentd1891c3d8ad579a9d171cac4a8e5d03fe7f4d927 (diff)
downloadphp-git-57792acabc29f73e4ac3580f7ec2bc748afbb278.tar.gz
MFH: parameter entity argument (pe) should be bool
update test
Diffstat (limited to 'ext/xmlwriter/tests')
-rw-r--r--ext/xmlwriter/tests/bug39504.phpt14
1 files changed, 14 insertions, 0 deletions
diff --git a/ext/xmlwriter/tests/bug39504.phpt b/ext/xmlwriter/tests/bug39504.phpt
index 3b70f6a2f2..669c77ee24 100644
--- a/ext/xmlwriter/tests/bug39504.phpt
+++ b/ext/xmlwriter/tests/bug39504.phpt
@@ -11,8 +11,22 @@ xmlwriter_end_dtd($xw);
xmlwriter_start_element($xw, "root");
xmlwriter_end_document($xw);
print xmlwriter_flush($xw, true);
+print "\n";
+
+$xw = new XMLWriter();
+$xw->openMemory();
+$xw->startDocument(NULL, "UTF-8");
+$xw->startDtd("root");
+$xw->writeDtdEntity("c", NULL, 0, "-//W3C//TEXT copyright//EN", "http://www.w3.org/xmlspec/copyright.xml");
+$xw->endDtd();
+$xw->startElement("root");
+$xw->endDocument();
+print $xw->flush(true);
?>
--EXPECTF--
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE root [<!ENTITY ent2 "val2">]><root/>
+
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE root [<!ENTITY c PUBLIC "-//W3C//TEXT copyright//EN" "http://www.w3.org/xmlspec/copyright.xml">]><root/>