php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #45523 max_execution_time not working as documented
Submitted: 2008-07-16 00:04 UTC Modified: 2008-07-16 09:54 UTC
From: webmaster at asylum-et dot com Assigned:
Status: Not a bug Package: *General Issues
PHP Version: 5.2.6 OS: *
Private report: No CVE-ID: None
 [2008-07-16 00:04 UTC] webmaster at asylum-et dot com
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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-07-16 09:54 UTC] jani@php.net
See bug #28572
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 17 14:04:04 2025 UTC