note 69707 deleted from features.commandline by sobak
| From: | sobak@php.net | Date: | Thu, 01 Dec 2016 06:47:25 +0000 |
| Subject: | note 69707 deleted from features.commandline by sobak | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-207815@lists.php.net to get a copy of this message | ||
Note Submitter:
----
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.