ID:               30832
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-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] [EMAIL PROTECTED]

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

Reply via email to