From:             [EMAIL PROTECTED]
Operating system: Windows 2000
PHP version:      5.0.2
PHP Bug Type:     XML related
Bug description:  "!" stripped off comments

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 bug report at http://bugs.php.net/?id=30832&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=30832&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=30832&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=30832&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=30832&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=30832&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=30832&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=30832&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=30832&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=30832&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=30832&r=notwrong
Not enough info:             
http://bugs.php.net/fix.php?id=30832&r=notenoughinfo
Submitted twice:             
http://bugs.php.net/fix.php?id=30832&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=30832&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=30832&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=30832&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=30832&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=30832&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=30832&r=float
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=30832&r=mysqlcfg

Reply via email to