diff options
-rw-r--r-- | ext/xmlwriter/tests/009.phpt | 8 | ||||
-rw-r--r-- | ext/xmlwriter/tests/OO_009.phpt | 8 |
2 files changed, 10 insertions, 6 deletions
diff --git a/ext/xmlwriter/tests/009.phpt b/ext/xmlwriter/tests/009.phpt index 9c00fe7b0e..002916ff10 100644 --- a/ext/xmlwriter/tests/009.phpt +++ b/ext/xmlwriter/tests/009.phpt @@ -8,7 +8,9 @@ if (!function_exists("xmlwriter_start_comment")) die("skip: libxml2 2.6.7+ requi --FILE-- <?php /* $Id$ */ - +/* +Libxml 2.6.24 and up adds a new line after a processing instruction (PI) +*/ $xw = xmlwriter_open_memory(); xmlwriter_set_indent($xw, TRUE); xmlwriter_start_document($xw, NULL, "UTF-8"); @@ -32,12 +34,12 @@ xmlwriter_end_document($xw); $output = xmlwriter_flush($xw, true); print $output; ?> ---EXPECT-- +--EXPECTF-- <?xml version="1.0" encoding="UTF-8"?> <root id="elem1"> <elem1 attr1="first"> <!--start PI--> - <pi><?php echo "hello world"; ?></pi> + <pi><?php echo "hello world"; ?>%w</pi> <cdata><![CDATA[<>&"]]></cdata> </elem1> </root> diff --git a/ext/xmlwriter/tests/OO_009.phpt b/ext/xmlwriter/tests/OO_009.phpt index aa3e95596f..c874f3e4ef 100644 --- a/ext/xmlwriter/tests/OO_009.phpt +++ b/ext/xmlwriter/tests/OO_009.phpt @@ -7,7 +7,9 @@ if (!extension_loaded("xmlwriter")) die("skip"); --FILE-- <?php /* $Id$ */ - +/* +Libxml 2.6.24 and up adds a new line after a processing instruction (PI) +*/ $xw = new XMLWriter(); $xw->openMemory(); $xw->setIndent(TRUE); @@ -32,12 +34,12 @@ $xw->endDocument(); $output = $xw->flush(true); print $output; ?> ---EXPECT-- +--EXPECTF-- <?xml version="1.0" encoding="UTF-8"?> <root id="elem1"> <elem1 attr1="first"> <!--start PI--> - <pi><?php echo "hello world"; ?></pi> + <pi><?php echo "hello world"; ?>%w</pi> <cdata><![CDATA[<>&"]]></cdata> </elem1> </root> |