From:             webmaster at asylum-et dot com
Operating system: Any
PHP version:      5.2.6
PHP Bug Type:     *General Issues
Bug description:  max_execution_time not working as documented

Description:
------------
I have found an old bug that I have found twice and has been closed twice
claiming it is fixed. Bugs #37306 and #37408. This has not been fixed. I
have found this issue in bug threads dating back as far as 2006. I have PHP
5.2.5.5 / WinXP SP2 / Apache 2.2.4.0 and PHP is "NOT" in safe mode. I get
the error message Fatal error: Maximum execution time of 0 seconds exceeded
...

Reproduce code:
---------------
The max_execution_time was set to 0 to allow infinite time since 120 was
not enough and had been the previous setting. Come to find out 120 was
ample but this bug showed its face. According to the PHP.net documentation,
The maximum execution time, in seconds. If set to zero, no time limit is
imposed. Previous note in the other report was closed due to no one being
able to recreate this error. I have installed this version of PHP 4 times
with the exact same result so it should be rather simple to recreate since
I have 4 times already. Hopefully this receives an honest attempt at
resolving the bug. I would give more info but there is nothing else except
that I see the error when trying to upload files of only 6 MB.

Expected result:
----------------
max_execution_time = 0 to work as documented

Actual result:
--------------
Scripts fail unless setting max_input_time = 0 as well

-- 
Edit bug report at http://bugs.php.net/?id=45523&edit=1
-- 
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=45523&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): 
http://bugs.php.net/fix.php?id=45523&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=45523&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=45523&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=45523&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=45523&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=45523&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=45523&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=45523&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=45523&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=45523&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=45523&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=45523&r=globals
PHP 4 support discontinued:   http://bugs.php.net/fix.php?id=45523&r=php4
Daylight Savings:             http://bugs.php.net/fix.php?id=45523&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=45523&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=45523&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=45523&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=45523&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=45523&r=mysqlcfg

Reply via email to