summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2003-03-19 20:36:04 +0000
committerMarcus Boerger <helly@php.net>2003-03-19 20:36:04 +0000
commit58df04af27a2c73f4c1149b462407cadb201f5fb (patch)
tree491796347989169fdc3c887e9f79c3d3542df565
parentd15a64122206214bcbc283382fa98e61cfb44f6a (diff)
downloadphp-git-58df04af27a2c73f4c1149b462407cadb201f5fb.tar.gz
- reenable $argc/$argv
- add a comment where hardcoded defaults would go # i believe we have none for now though
-rw-r--r--sapi/cli/php_cli.c3
1 files changed, 3 insertions, 0 deletions
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("<name>", len, "<value>", 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);