From 57792acabc29f73e4ac3580f7ec2bc748afbb278 Mon Sep 17 00:00:00 2001 From: Rob Richards Date: Sat, 6 Jan 2007 18:03:43 +0000 Subject: MFH: parameter entity argument (pe) should be bool update test --- ext/xmlwriter/tests/bug39504.phpt | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'ext/xmlwriter/tests') 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-- ]> + + +]> -- cgit v1.2.1