mirror of
https://github.com/php/php-src.git
synced 2024-11-24 18:34:21 +08:00
@- Made $HTTP_SESSION_VARS['foo'] and $foo be references to the same value
@ when register_globals is on. (Andrei)
This commit is contained in:
parent
6b2df64cf0
commit
699489d456
@ -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)));
|
||||
|
Loading…
Reference in New Issue
Block a user