php.net |  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.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: shadow at overdrawn dot net
New email:
PHP Version: OS:

 

 [2006-09-08 21:00 UTC] 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-09-08 21:03 UTC] tony2001@php.net
The error message comes from libxml2. not PHP, thus we cannot change/fix it.
 
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Tue Dec 06 18:05:53 2022 UTC