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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
16 - 1 = ?
Subscribe to this entry?

 
 [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-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 19:01:29 2024 UTC