php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #60511 XMLReader chokes on mid-size 'single line' documents
Submitted: 2011-12-13 15:35 UTC Modified: 2013-10-15 11:54 UTC
From: r dot altenburg at eti dot uva dot nl Assigned:
Status: No Feedback Package: XML Reader
PHP Version: 5.3.8 OS: Mac OS X 10.6.8
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 — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
11 + 9 = ?
Subscribe to this entry?

 
 [2011-12-13 15:35 UTC] r dot altenburg at eti dot uva dot nl
Description:
------------
I must say in honesty that I have only verified in 5.3.6 and 5.2.17, I have no 
option to verify in the very latest versions.

I have created a script that parses large XML files. Essentially these files are 
single line documents without returns between the tags. When running the script 
(see URL), I get a timeout after processing just a few nodes.

Incidentally I had a copy of the same XML file at hand that had been formatted for 
readability in BBEdit. To my surprise this version was parsed to the very end! 


Test script:
---------------
Test script
http://test.etibioinformatics.nl/xmlreader/index.php.zip

Two version of the same XML file
http://test.etibioinformatics.nl/xmlreader/xml.zip

Expected result:
----------------
Timeout


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-12-13 15:36 UTC] r dot altenburg at eti dot uva dot nl
Expected result should be a completely parsed XML file of course...
 [2013-10-03 12:22 UTC] mike@php.net
-Status: Open +Status: Feedback
 [2013-10-03 12:22 UTC] mike@php.net
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php

If you can provide more information, feel free to add it
to this bug and change the status back to "Open".

Thank you for your interest in PHP.


Looks fine here, the script spends lots of time in preg_replace.
 [2013-10-15 11:54 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 20 06:01:28 2024 UTC