#20466 [Com]: max_execution_time setting in php.ini ignored
| From: | websteffen at web dot de | Date: | Sun, 17 Nov 2002 20:20:43 +0000 |
| Subject: | #20466 [Com]: max_execution_time setting in php.ini ignored | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-25122@lists.php.net to get a copy of this message | ||
ID: 20466
Comment by: websteffen@web.de
Reported By: websteffen@web.de
Status: Feedback
Bug Type: *Configuration Issues
Operating System: Windows XP
PHP Version: 4CVS-2002-11-17
New Comment:
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 ?!?
Previous Comments:
------------------------------------------------------------------------
[2002-11-17 14:05:55] 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 13:39:38] websteffen@web.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 13:31:13] 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:23:53] websteffen@web.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)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=20466&edit=1