summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfoobar <sniper@php.net>2002-05-05 17:11:04 +0000
committerfoobar <sniper@php.net>2002-05-05 17:11:04 +0000
commit5f13f4ecb7c20d2e075772846839720fb880f90f (patch)
tree74e8c3cecf8e42ec98eb816e509bd4bd4d728b5d
parent5d177788ea1cd2bd0cdbdf9215718a092c0c2c4e (diff)
downloadphp-git-5f13f4ecb7c20d2e075772846839720fb880f90f.tar.gz
Force register_argc_argv=On for CLI
-rw-r--r--sapi/cli/php_cli.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sapi/cli/php_cli.c b/sapi/cli/php_cli.c
index 6e4c2a3ca3..8299ba919c 100644
--- a/sapi/cli/php_cli.c
+++ b/sapi/cli/php_cli.c
@@ -395,6 +395,7 @@ int main(int argc, char *argv[])
/* Set some CLI defaults */
SG(options) |= SAPI_OPTION_NO_CHDIR;
+ zend_alter_ini_entry("register_argc_argv", 19, "1", 1, PHP_INI_SYSTEM, PHP_INI_STAGE_ACTIVATE);
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);