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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

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-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 26 23:01:28 2024 UTC