#38755 [Opn->Bgs]: Parser error when loading a file with odd characters
| From: | tony2001@php.net | Date: | Fri, 08 Sep 2006 21:03:30 +0000 |
| Subject: | #38755 [Opn->Bgs]: Parser error when loading a file with odd characters | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-101903@lists.php.net to get a copy of this message | ||
ID: 38755
Updated by: tony2001@php.net
Reported By: shadow at overdrawn dot net
-Status: Open
+Status: Bogus
Bug Type: SimpleXML related
Operating System: Debian
PHP Version: 5.1.6
New Comment:
The error message comes from libxml2. not PHP, thus we cannot
change/fix it.
Previous Comments:
------------------------------------------------------------------------
[2006-09-08 21:00:14] shadow at overdrawn dot net
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 this bug report at http://bugs.php.net/?id=38755&edit=1