cvs: php4 /sapi/cli php_cli.c
| From: | Jani Taskinen | Date: | Sun, 05 May 2002 17:11:04 +0000 |
| Subject: | cvs: php4 /sapi/cli php_cli.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-11710@lists.php.net to get a copy of this message | ||
sniper Sun May 5 13:11:04 2002 EDT
Modified files:
/php4/sapi/cli php_cli.c
Log:
Force register_argc_argv=On for CLI
Index: php4/sapi/cli/php_cli.c
diff -u php4/sapi/cli/php_cli.c:1.19 php4/sapi/cli/php_cli.c:1.20
--- php4/sapi/cli/php_cli.c:1.19 Thu Apr 11 20:20:28 2002
+++ php4/sapi/cli/php_cli.c Sun May 5 13:11:04 2002
@@ -395,6 +395,7 @@
/* 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);