From 58df04af27a2c73f4c1149b462407cadb201f5fb Mon Sep 17 00:00:00 2001 From: Marcus Boerger Date: Wed, 19 Mar 2003 20:36:04 +0000 Subject: - reenable $argc/$argv - add a comment where hardcoded defaults would go # i believe we have none for now though --- sapi/cli/php_cli.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sapi/cli/php_cli.c') diff --git a/sapi/cli/php_cli.c b/sapi/cli/php_cli.c index 9b1c64c8ea..c053aef435 100644 --- a/sapi/cli/php_cli.c +++ b/sapi/cli/php_cli.c @@ -600,6 +600,8 @@ int main(int argc, char *argv[]) /* Set some CLI defaults */ SG(options) |= SAPI_OPTION_NO_CHDIR; + /* here is the place for hard coded defaults which cannot be overwritten in the ini file */ + /*zend_alter_ini_entry("", len, "", 1, PHP_INI_SYSTEM, PHP_INI_STAGE_ACTIVATE);*/ zend_uv.html_errors = 0; /* tell the engine we're in non-html mode */ @@ -894,6 +896,7 @@ int main(int argc, char *argv[]) } /* This actually destructs the elements of the list - ugly hack */ + zend_is_auto_global("_SERVER", sizeof("_SERVER")-1 TSRMLS_CC); zend_llist_apply(&global_vars, (llist_apply_func_t) php_register_command_line_global_vars TSRMLS_CC); zend_llist_destroy(&global_vars); -- cgit v1.2.1