From:             jsmestad at advantageline dot com
Operating system: Windows XP Professional SP2
PHP version:      5CVS-2005-02-02 (dev)
PHP Bug Type:     XML related
Bug description:  XML parse error not reported

Description:
------------
The XML parser does not return an error when expected.

Reproduce code:
---------------
$xml_parser = xml_parser_create();
xml_set_element_handler($xml_parser, "startTag", "endTag");
xml_set_character_data_handler($xml_parser, "cdata");
$data =
xml_parse($xml_parser,"<thdoc><this>this&that</this><that>thatdata</that></thdoc>");
printf("%s at line %d", xml_error_string(xml_get_error_code($xml_parser)),
xml_get_current_line_number($xml_parser));


Expected result:
----------------
not well-formed (invalid token) at line 1

Actual result:
--------------
No error at line 1

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

Reply via email to