]> granicus.if.org Git - php/commitdiff
Force register_argc_argv=On for CLI
authorfoobar <sniper@php.net>
Sun, 5 May 2002 17:11:04 +0000 (17:11 +0000)
committerfoobar <sniper@php.net>
Sun, 5 May 2002 17:11:04 +0000 (17:11 +0000)
sapi/cli/php_cli.c

index 6e4c2a3ca334f36ffd69483674396ee31354a213..8299ba919c4543b923541a89e35e43275b5159af 100644 (file)
@@ -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);