From: josef dot buk at volny dot cz Operating system: Win XP Pro SP3 PHP version: 5.2.6 PHP Bug Type: *XML functions Bug description: Bug in xml_parser example
Description: ------------ There is an error in the first example from 24-May-2008 05:30. The result gives: Reproduce code: --------------- Try this: just a copy of the class definition and $xml=new xx_xml("<aa>aaa1<bb databb='xbxb'>bbbb1</bb>aaa2<cc>ccc1</cc>aaaa3</aa>","contents"); print_r($xml->data); Expected result: ---------------- Array ( [aa] => Array ( [data] => Array ( [0] => aaa1 [1] => aaa2 [2] => aaa3 ) ) [aa|bb] => Array ( [databb] => xbxb [data] => Array ( [0] => bbbb1 ) ) [aa|cc] => Array ( [data] => Array ( [0] => ccc1 ) ) Actual result: -------------- Array ( [aa] => Array ( [data] => Array ( [0] => aaa1 ) ) [aa|bb] => Array ( [databb] => xbxb [data] => Array ( [0] => bbbb1 [1] => aaa2 ) ) [aa|cc] => Array ( [data] => Array ( [0] => ccc1aaaa3 ) ) -- Edit bug report at http://bugs.php.net/?id=46199&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=46199&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=46199&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=46199&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=46199&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=46199&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=46199&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=46199&r=needscript Try newer version: http://bugs.php.net/fix.php?id=46199&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=46199&r=support Expected behavior: http://bugs.php.net/fix.php?id=46199&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=46199&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=46199&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=46199&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=46199&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=46199&r=dst IIS Stability: http://bugs.php.net/fix.php?id=46199&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=46199&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=46199&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=46199&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=46199&r=mysqlcfg