From: Andrei Zmievski Date: Tue, 22 May 2001 17:55:07 +0000 (+0000) Subject: @- Made $HTTP_SESSION_VARS['foo'] and $foo be references to the same value X-Git-Tag: PRE_GRANULAR_GARBAGE_FIX~284 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=699489d4569c88eb23591bde65dccede41f62f93;p=php @- Made $HTTP_SESSION_VARS['foo'] and $foo be references to the same value @ when register_globals is on. (Andrei) --- diff --git a/ext/session/session.c b/ext/session/session.c index 9be12ff7e5..c83e1279b2 100644 --- a/ext/session/session.c +++ b/ext/session/session.c @@ -245,9 +245,9 @@ void php_set_session_var(char *name, size_t namelen, zval *state_val PSLS_DC) REPLACE_ZVAL_VALUE(old_symbol,state_val_copy,0); FREE_ZVAL(state_val_copy); - zend_set_hash_symbol(*old_symbol, name, namelen, 0, 1, Z_ARRVAL_P(PS(http_session_vars))); + zend_set_hash_symbol(*old_symbol, name, namelen, 1, 1, Z_ARRVAL_P(PS(http_session_vars))); } else { - zend_set_hash_symbol(state_val_copy, name, namelen, 0, 2, Z_ARRVAL_P(PS(http_session_vars)), &EG(symbol_table)); + zend_set_hash_symbol(state_val_copy, name, namelen, 1, 2, Z_ARRVAL_P(PS(http_session_vars)), &EG(symbol_table)); } } else { zend_set_hash_symbol(state_val_copy, name, namelen, 0, 1, Z_ARRVAL_P(PS(http_session_vars)));