|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #32001 xml_parse_into_struct() function exceeds maximum execution time (object)
Submitted: 2005-02-16 18:08 UTC Modified: 2005-03-02 19:15 UTC
From: geroxp at web dot de Assigned: jorton (profile)
Status: Closed Package: XML related
PHP Version: 5CVS-2005-02-17 OS: Linux (FC3)
Private report: No CVE-ID: None
 [2005-02-16 18:08 UTC] geroxp at web dot de
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:

How reproducible:

Reproduce code:
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);


$myobject =& new myclass;


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


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2005-02-17 12:31 UTC]
The test case is triggering an infinite loop in libxml2; I've proposed this patch:
 [2005-03-02 19:15 UTC]
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
Thank you for the report, and for helping us make PHP better.

PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Sat Dec 02 10:01:26 2023 UTC