Bug #60511 [Opn->Fbk]: XMLReader chokes on mid-size 'single line' documents
Edit report at https://bugs.php.net/bug.php?id=60511&edit=1
ID: 60511
Updated by: mike@php.net
Reported by: r dot altenburg at eti dot uva dot nl
Summary: XMLReader chokes on mid-size 'single line' documents
-Status: Open
+Status: Feedback
Type: Bug
Package: XML Reader
Operating System: Mac OS X 10.6.8
PHP Version: 5.3.8
Block user comment: N
Private report: N
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[2011-12-13 15:36:55] r dot altenburg at eti dot uva dot nl
Expected result should be a completely parsed XML file of course...
------------------------------------------------------------------------
[2011-12-13 15:35:45] 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
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=60511&edit=1
Thread (4 messages)