#30832 [Opn->Csd]: "!" stripped off comments
| From: | rrichards@php.net | Date: | Thu, 18 Nov 2004 18:28:23 +0000 |
| Subject: | #30832 [Opn->Csd]: "!" stripped off comments | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-69231@lists.php.net to get a copy of this message | ||
ID: 30832
Updated by: rrichards@php.net
Reported By: mike@php.net
-Status: Open
+Status: Closed
Bug Type: XML related
Operating System: Windows 2000
PHP Version: 5.0.2
New Comment:
This bug has been fixed in CVS.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2004-11-18 18:09:39] mike@php.net
Description:
------------
ext/xml strips the exclamation marks ("!") off comments
Reproduce code:
---------------
<?php
$xml = "<?xml version=\"1.0\" encoding=\"iso-8859-1\"?>
<root><!-- a comment -->blä</root>";
$xp = xml_parser_create('iso-8859-1');
xml_set_default_handler($xp, 'var_dump');
xml_parse($xp, $xml);
?>
Expected result:
----------------
resource(1) of type (xml)
string(17) "<!-- a comment -->"
Actual result:
--------------
resource(1) of type (xml)
string(17) "<-- a comment -->"
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=30832&edit=1