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:
Have you reported this upstream?
No I didn't. I didn't know if this is a bug in a patched version or the original version.
Now, I have just reported it as Bug #32001 at php.net
Thanks Gero; I've proposed a fix.
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.
This is fixed in FC4 final with libxml2-2.6.19. Thanks for the report.