note 69707 added to features.commandline
| From: | php-general at lists dot php dot net | Date: | Sat, 16 Sep 2006 18:05:45 +0000 |
| Subject: | note 69707 added to features.commandline | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-117246@lists.php.net to get a copy of this message | ||
It seems like 'max_execution_time' doesn't work on CLI.
<?php
php -d max_execution_time=20
-r '$foo = ini_get("max_execution_time"); var_dump($foo);'
?>
will print string(2) "20", but if you'l run infinity while: while(true) for example,
it wouldn't stop after 20 seconds.
Testes on Linux Gentoo, PHP 5.1.6.
----
Server IP: 195.222.164.18
Probable Submitter: 195.131.172.76
----
Manual Page -- http://www.php.net/manual/en/features.commandline.php
Edit -- https://master.php.net/note/edit/69707
Del: integrated -- https://master.php.net/note/delete/69707/integrated
Del: useless -- https://master.php.net/note/delete/69707/useless
Del: bad code -- https://master.php.net/note/delete/69707/bad+code
Del: spam -- https://master.php.net/note/delete/69707/spam
Del: non-english -- https://master.php.net/note/delete/69707/non-english
Del: in docs -- https://master.php.net/note/delete/69707/in+docs
Del: other reasons-- https://master.php.net/note/delete/69707
Reject -- https://master.php.net/note/reject/69707
Search -- https://master.php.net/manage/user-notes.php