From: Edin Kadribasic Date: Sun, 24 Mar 2002 17:14:34 +0000 (+0000) Subject: Override max_execution_time, setting it to unlimited. X-Git-Tag: php-4.3.0dev-ZendEngine2-Preview1~1065 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=62df9cf644b3b230f40231786bf38ea7acada0a6;p=php Override max_execution_time, setting it to unlimited. --- diff --git a/sapi/cli/README b/sapi/cli/README index bede428f9b..040e224cb0 100644 --- a/sapi/cli/README +++ b/sapi/cli/README @@ -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. diff --git a/sapi/cli/php_cli.c b/sapi/cli/php_cli.c index 949c8667f4..94d022b869 100644 --- a/sapi/cli/php_cli.c +++ b/sapi/cli/php_cli.c @@ -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) {