diff options
| author | Mark A. Hershberger <mah@debian.(none)> | 2009-03-25 00:36:21 -0400 |
|---|---|---|
| committer | Mark A. Hershberger <mah@debian.(none)> | 2009-03-25 00:36:21 -0400 |
| commit | d29a4fd2dd3b5d4cf6e80b602544d7b71d794e76 (patch) | |
| tree | b38e2e5c6974b9a15f103e5cf884cba9fff90ef4 /ext/xmlwriter/tests/009.phpt | |
| parent | a88a88d0986a4a32288c102cdbfebd78d7e91d99 (diff) | |
| download | php-upstream/5.2.0.tar.gz | |
Imported Upstream version 5.2.0upstream/5.2.0
Diffstat (limited to 'ext/xmlwriter/tests/009.phpt')
| -rw-r--r-- | ext/xmlwriter/tests/009.phpt | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/ext/xmlwriter/tests/009.phpt b/ext/xmlwriter/tests/009.phpt index f9b6600ca..021f2399c 100644 --- a/ext/xmlwriter/tests/009.phpt +++ b/ext/xmlwriter/tests/009.phpt @@ -7,8 +7,10 @@ if (!function_exists("xmlwriter_start_comment")) die("skip: libxml2 2.6.7+ requi ?> --FILE-- <?php -/* $Id: 009.phpt,v 1.1.2.3 2005/12/09 20:52:15 rrichards Exp $ */ - +/* $Id: 009.phpt,v 1.1.2.3.2.1 2006/07/19 18:50:51 pajoye Exp $ */ +/* +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> |
