#37408 [Bgs->Opn]: max_execution_time seems to be in affect for interactive CLI sessions
| From: | Jared dot Williams1 at ntlworld dot com | Date: | Tue, 16 May 2006 00:25:52 +0000 |
| Subject: | #37408 [Bgs->Opn]: 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-97157@lists.php.net to get a copy of this message | ||
ID: 37408
User updated by: Jared dot Williams1 at ntlworld dot com
Reported By: Jared dot Williams1 at ntlworld dot com
-Status: Bogus
+Status: Open
Bug Type: Scripting Engine problem
Operating System: Win2000
PHP Version: 5.1.4
Assigned To: helly
New Comment:
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
Previous Comments:
------------------------------------------------------------------------
[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
------------------------------------------------------------------------
[2006-05-12 02:08:25] mlee at kanhan dot com
Sorry the command in my previous comment should be this:
C:\temp>php loop.php
------------------------------------------------------------------------
[2006-05-12 02:05:22] mlee at kanhan dot com
The bug does not just affect interactive sessions but normal CLI
operations as well. Try put the following code in a file:
<?php
for($i = 0; ; ++$i) {
echo $i."\n";
sleep(1);
}
?>
Then run it at the command prompt:
c:\>php loop.php
After running for about 60 seconds, the following error occurs:
Fatal error: Maximum execution time of 60 seconds exceeded in
C:\temp\loop.php on line 6
------------------------------------------------------------------------
[2006-05-11 15:28:25] Jared dot Williams1 at ntlworld dot com
Description:
------------
max_execution_time seems to be in affect for interactive CLI sessions
5.1.4 & 5.2 both exhibit the problem.
Reproduce code:
---------------
E:\php-5.1.4-Win32>php -a
Interactive mode enabled
<?php
Fatal error: Maximum execution time of 60 seconds exceeded in
E:\php-5.1.4-Win32\- on line 3
Expected result:
----------------
max_execution_time to be disabled/infinite.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=37408&edit=1