php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #20466 max_execution_time setting in php.ini ignored
Submitted: 2002-11-17 13:23 UTC Modified: 2002-11-17 16:53 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: websteffen at web dot de Assigned:
Status: Closed Package: *Configuration Issues
PHP Version: 4CVS-2002-11-17 OS: Windows XP
Private report: No CVE-ID: None
 [2002-11-17 13:23 UTC] websteffen at web dot de
The max_execution_time setting in my php.ini doesn't work. It's always 60 seconds, although I've set it to 90 seconds (what is confirmed by the output of phpinfo() ). Even when I set it to 30 seconds, a script still aborts with the message "Fatal error: Maximum execution time of 60 seconds exceeded in [...]".

I'm using Apache 2.0.43 and the latest PHP 4.40 Snapshot (php4-win32-200211171530.zip) and have no modules loaded. The error also occured using a Snapshot from the 4.30 Series (from yesterday).

This is an extract of my php.ini:

;;;;;;;;;;;;;;;;;;;
; Resource Limits ;
;;;;;;;;;;;;;;;;;;;

max_execution_time = 90     ; Maximum execution time of each script, in seconds
max_input_time = 60	; Maximum amount of time each script may spend parsing request data
memory_limit = 8M      ; Maximum amount of memory a script may consume (8MB)

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-11-17 13:31 UTC] nicos@php.net
Okay you mean phpinfo() is updated but it still stops after the default limit?

Did you restarted your httpd?

I can't reproduce that with the latest CVS...

Thanks for your report.
 [2002-11-17 13:39 UTC] websteffen at web dot de
Yes, I've restarted it a couple of times already and even stopped and then started it again. phpinfo() indeed shows max_execution_time 90 seconds, but the script aborts after 60 seconds. Other settings in php.ini (like error_reporting) work, but max_execution_time doesn't... :-(
 [2002-11-17 14:05 UTC] derick@php.net
What is your script doing when it times out? If it's waiting for something to upload, you should change the max_input_time setting, which you currently have set to 60.

Derick
 [2002-11-17 14:20 UTC] websteffen at web dot de
Thanks, Derick, I've set max_input_time to 90 seconds and now it works. But I don't understand why it works now, because the script doesn't take any variables. The *only* thing it does is to convert a lot of data by SELECTing from a mysql database and then writing the data back with a few changes.

So my problem is solved, but I don't know why. I think that it is a bug, because max_input_time shouldn't affect the runtime of a script that doesn't take any arguments ?!?
 [2002-11-17 14:21 UTC] derick@php.net
Yup, sounds like a bug to me too then.

Derick
 [2002-11-17 16:53 UTC] iliaa@php.net
This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.


 [2002-11-18 11:29 UTC] websteffen at web dot de
Seems to be fixed, thanks! :-)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Dec 09 02:01:27 2024 UTC