From 622da332312a3bdeb8cdb0385577b5fb4cbeeb04 Mon Sep 17 00:00:00 2001 From: Zeev Suraski Date: Sun, 2 Mar 2003 13:35:01 +0000 Subject: - Optimize $_REQUEST - Fix phpinfo() --- main/php_variables.c | 73 ++++++++++++++++++++++++++++++++-------------------- 1 file changed, 45 insertions(+), 28 deletions(-) (limited to 'main/php_variables.c') diff --git a/main/php_variables.c b/main/php_variables.c index 8296a6d24f..c0154e3262 100644 --- a/main/php_variables.c +++ b/main/php_variables.c @@ -492,7 +492,7 @@ static inline void php_register_server_variables(TSRMLS_D) static zend_bool php_auto_globals_create_server(char *name, uint name_len TSRMLS_DC); static zend_bool php_auto_globals_create_env(char *name, uint name_len TSRMLS_DC); - +static zend_bool php_auto_globals_create_request(char *name, uint name_len TSRMLS_DC); /* {{{ php_hash_environment */ @@ -503,7 +503,6 @@ int php_hash_environment(TSRMLS_D) zend_bool have_variables_order; zval *dummy_track_vars_array = NULL; zend_bool initialized_dummy_track_vars_array=0; - int i; zend_bool jit_initialization = (!PG(register_globals) && !PG(register_long_arrays)); char *variables_order; struct auto_global_record { @@ -521,7 +520,9 @@ int php_hash_environment(TSRMLS_D) { "_FILES", sizeof("_FILES"), "HTTP_FILES_GLOBALS", sizeof("HTTP_FILES_GLOBALS"), 0 }, }; size_t num_track_vars = sizeof(auto_global_records)/sizeof(struct auto_global_record); + size_t i; + /* jit_initialization = 0; */ for (i=0; i