#32001 [Ver->Asn]: xml_parse_into_struct() function exceeds maximum execution time (object)
ID: 32001
Updated by: jorton@php.net
Reported By: geroxp at web dot de
-Status: Verified
+Status: Assigned
Bug Type: XML related
Operating System: Linux (FC3)
PHP Version: 5CVS-2005-02-17
-Assigned To:
+Assigned To: jorton
New Comment:
The test case is triggering an infinite loop in libxml2; I've proposed
this patch: http://www.apache.org/~jorton/php_xmlenc.diff
Previous Comments:
------------------------------------------------------------------------
[2005-02-16 18:08:30] geroxp at web dot de
Description:
------------
When using xml_parse_into_struct() function with an object the
following error occurs:
Fatal error: Maximum execution time of 30 seconds exceeded in
/var/www/html/test.php on line 9
Version-Release number:
php-5.0.3-2
How reproducible:
Always
Reproduce code:
---------------
<?php
class myclass {
var $myparser;
function mytest() {
$this->myparser = xml_parser_create('');
$simple = "<para><note>simple note</note></para>";
xml_parse_into_struct($this->myparser, $simple, $myvals, $mytags);
print_r($myvals);
}
}
$myobject =& new myclass;
$myobject->mytest();
?>
Expected result:
----------------
Output of the xml-structure given as an array.
Actual result:
--------------
Fatal error: Maximum execution time of 30 seconds exceeded in
/var/www/html/test.php on line 9
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=32001&edit=1
Thread (4 messages)