#37408 [Com]: max_execution_time seems to be in affect for interactive CLI sessions
| From: | psadac at gmail dot com | Date: | Fri, 19 May 2006 08:05:50 +0000 |
| Subject: | #37408 [Com]: max_execution_time seems to be in affect for interactive CLI sessions | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-97356@lists.php.net to get a copy of this message | ||
ID: 37408
Comment by: psadac at gmail dot com
Reported By: Jared dot Williams1 at ntlworld dot com
Status: Feedback
Bug Type: Scripting Engine problem
Operating System: Win2000
PHP Version: 5.1.4
Assigned To: helly
New Comment:
it's a bug. I run php 5.1.4 over Windows XP, i have max_execution_time
= 240 in my php.ini, set_time_limit(0) in my php script and i get
"Maximum execution time of 60 seconds exceeded".
Previous Comments:
------------------------------------------------------------------------
[2006-05-18 13:42:54] mlee at kanhan dot com
It's 30 seconds in my php.ini, but the error I get is this:
"Fatal error: Maximum execution time of 60 seconds exceeded"
Anyway, I thought the documentation is quite clear about the fact
max_execution_time is one of the overridden php.ini directives for the
CLI executable and that the default value is 0 (infinite).
------------------------------------------------------------------------
[2006-05-17 14:06:28] mike@php.net
What's defined for max_execution_time in your php.ini
------------------------------------------------------------------------
[2006-05-16 19:58:11] mlee at kanhan dot com
It IS a bug. I've double-checked the documentation:
http://www.php.net/manual/en/features.commandline.php
It says the default value of max_execution_time is 0 for the CLI
version.
------------------------------------------------------------------------
[2006-05-16 00:25:52] Jared dot Williams1 at ntlworld dot com
F:\Temp\CVSProjects\ezcomponents\trunk>php -d max_execution_time=0 -a
Interactive mode enabled
<?php
sleep(4);
echo $a;'
Fatal error: Maximum execution time of 30 seconds exceeded in
F:\Temp\CVSProjects\ezcomponents\trunk\- on line 3
------------------------------------------------------------------------
[2006-05-16 00:11:51] iliaa@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
To chang execution time limit either use set_time_limit()
function or run CLI php with -d max_execution_time=0 flag
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/37408
--
Edit this bug report at http://bugs.php.net/?id=37408&edit=1