From: geroxp at web dot de
Operating system: Linux (FC3)
PHP version: 5.0.3
PHP Bug Type: Class/Object related
Bug description: xml_parse_into_struct() function exceeds maximum execution
time (object)
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 bug report at http://bugs.php.net/?id=32001&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=32001&r=trysnapshot4
Try a CVS snapshot (php5.0):
http://bugs.php.net/fix.php?id=32001&r=trysnapshot50
Try a CVS snapshot (php5.1):
http://bugs.php.net/fix.php?id=32001&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=32001&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=32001&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=32001&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=32001&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=32001&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=32001&r=support
Expected behavior: http://bugs.php.net/fix.php?id=32001&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=32001&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=32001&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=32001&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=32001&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=32001&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=32001&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=32001&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=32001&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=32001&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=32001&r=mysqlcfg