From: shadow at overdrawn dot net Operating system: Debian PHP version: 5.1.6 PHP Bug Type: SimpleXML related Bug description: Parser error when loading a file with odd characters
Description: ------------ When loading an xml file (outputted from azureus) the simplexml parser fails and errors out when it hits a hex 18 character. Reproduce code: --------------- $return = simplexml_load_file($xml_filename); Example XML file: http://bits.overdrawn.net/wtf.xml.gz Actual result: -------------- Warning: simplexml_load_file() [function.simplexml-load-file]: /files/Azureus_Stats.xml:34: parser error : internal error in /usr/local/apache2/htdocs/downloads/functions.php on line 59 Warning: simplexml_load_file() [function.simplexml-load-file]: oundException:http://www.letsroll911.org/BTracker/announce.php?info_hash=%c6%8aL in /usr/local/apache2/htdocs/downloads/functions.php on line 59 Warning: simplexml_load_file() [function.simplexml-load-file]: ^ in /usr/local/apache2/htdocs/downloads/functions.php on line 59 -- Edit bug report at http://bugs.php.net/?id=38755&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=38755&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=38755&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=38755&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=38755&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=38755&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=38755&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=38755&r=needscript Try newer version: http://bugs.php.net/fix.php?id=38755&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=38755&r=support Expected behavior: http://bugs.php.net/fix.php?id=38755&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=38755&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=38755&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=38755&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=38755&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=38755&r=dst IIS Stability: http://bugs.php.net/fix.php?id=38755&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=38755&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=38755&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=38755&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=38755&r=mysqlcfg
