|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #38755 Parser error when loading a file with odd characters
Submitted: 2006-09-08 21:00 UTC Modified: 2006-09-08 21:03 UTC
From: shadow at overdrawn dot net Assigned:
Status: Not a bug Package: SimpleXML related
PHP Version: 5.1.6 OS: Debian
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: shadow at overdrawn dot net
New email:
PHP Version: OS:


 [2006-09-08 21:00 UTC] shadow at overdrawn dot net
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:

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: 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


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2006-09-08 21:03 UTC]
The error message comes from libxml2. not PHP, thus we cannot change/fix it.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Apr 15 20:01:39 2024 UTC