Bug 148784 - xml_parse_into_struct() function exceeds maximum execution time when using it with an object
Summary: xml_parse_into_struct() function exceeds maximum execution time when using it...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: php
Version: rawhide
Hardware: i686
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Joe Orton
QA Contact: David Lawrence
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2005-02-15 16:39 UTC by Gero Mudersbach
Modified: 2007-11-30 22:11 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2005-07-05 15:28:23 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Gero Mudersbach 2005-02-15 16:39:37 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0

Description of problem:
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 of selected component (if applicable):
php-5.0.3-2

How reproducible:
Always

Steps to Reproduce:
Use this testscript to reproduce:
<?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();

?>


Actual Results:  Fatal error: Maximum execution time of 30 seconds exceeded in /var/www/html/test.php on line 9

Expected Results:  Output of the xml-structure given as an array.

Additional info:

Comment 1 Joe Orton 2005-02-16 14:52:55 UTC
Have you reported this upstream?

Comment 2 Gero Mudersbach 2005-02-16 16:56:48 UTC
No I didn't. I didn't know if this is a bug in a patched version or the original
version.

Comment 3 Gero Mudersbach 2005-02-16 17:10:03 UTC
Now, I have just reported it as Bug #32001 at php.net

Comment 4 Joe Orton 2005-02-17 11:34:19 UTC
Thanks Gero; I've proposed a fix.

Comment 5 Joe Orton 2005-03-22 15:54:55 UTC
If you missed the discussion upstream: there is a combination of a libxml2 and a
PHP bug here - a workaround has been committed for the next release.

Comment 6 Joe Orton 2005-07-05 15:28:23 UTC
This is fixed in FC4 final with libxml2-2.6.19.  Thanks for the report.


Note You need to log in before you can comment on or make changes to this bug.