]> granicus.if.org Git - php/commitdiff
Override max_execution_time, setting it to unlimited.
authorEdin Kadribasic <edink@php.net>
Sun, 24 Mar 2002 17:14:34 +0000 (17:14 +0000)
committerEdin Kadribasic <edink@php.net>
Sun, 24 Mar 2002 17:14:34 +0000 (17:14 +0000)
sapi/cli/README
sapi/cli/php_cli.c

index bede428f9bcb2e6ccf7b6460486ede6dd666676f..040e224cb03018e1dee6e98f37e0ce1918a8cec7 100644 (file)
@@ -15,3 +15,4 @@ The main differences between the two:
 * implicit_flush always on
 * -r option which allows execution of PHP code directly from
   the command line (e.g. php -r 'echo md5("test");' )
+* max_execution_time is set to unlimited, overriding php.ini setting.
index 949c8667f44e74079af7e68f6b1e9e65da5c5111..94d022b86991be4c99b6bd2d0e6fdfb6db86f192 100644 (file)
@@ -397,6 +397,7 @@ int main(int argc, char *argv[])
                SG(options) |= SAPI_OPTION_NO_CHDIR;
         zend_alter_ini_entry("html_errors", 12, "0", 1, PHP_INI_SYSTEM, PHP_INI_STAGE_ACTIVATE);
                zend_alter_ini_entry("implicit_flush", 15, "1", 1, PHP_INI_SYSTEM, PHP_INI_STAGE_ACTIVATE);
+               zend_alter_ini_entry("max_execution_time", 19, "0", 1, PHP_INI_SYSTEM, PHP_INI_STAGE_ACTIVATE);
 
                while ((c = ap_php_getopt(argc, argv, OPTSTRING)) != -1) {
                        switch (c) {