ID: 32457 Updated by: [EMAIL PROTECTED] Reported By: cephalicmarble at blueyonder dot co dot uk -Status: Open +Status: Bogus Bug Type: XML related Operating System: Linux PHP Version: 5.0.3 New Comment:
Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php check return and error values Previous Comments: ------------------------------------------------------------------------ [2005-03-25 19:05:45] cephalicmarble at blueyonder dot co dot uk Description: ------------ xml_parse_into_struct returns nodes correctly until it encounters an unquoted attribute. The function bombs without error. Reproduce code: --------------- <?php $sample = "<?xml version=\"1.0\"?><doc><test attr=unquoted/><next/><again/></doc>"; $parser = xml_parser_create(); $res = xml_parse_into_struct($parser,$sample,$vals,$index); xml_parser_free($parser); //var_dump($vals); echo sizeof($vals); ?> Expected result: ---------------- sizeof($vals) is one. Quote the attribute and it should be 5. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=32457&edit=1