helly           Wed Mar 19 15:36:04 2003 EDT

  Modified files:              
    /php4/sapi/cli      php_cli.c 
  Log:
  - reenable $argc/$argv
  - add a comment where hardcoded defaults would go
  # i believe we have none for now though
  
Index: php4/sapi/cli/php_cli.c
diff -u php4/sapi/cli/php_cli.c:1.73 php4/sapi/cli/php_cli.c:1.74
--- php4/sapi/cli/php_cli.c:1.73        Tue Mar 18 15:52:52 2003
+++ php4/sapi/cli/php_cli.c     Wed Mar 19 15:36:04 2003
@@ -600,6 +600,8 @@
 
         /* 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 @@
                }
 
                /* 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);
 



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to