1
0
mirror of https://github.com/php/php-src.git synced 2026-04-04 22:52:40 +02:00

Save entries in $_SESSION even if register_globals is on

This commit is contained in:
Zeev Suraski
2001-11-24 02:41:58 +00:00
parent 8c1f1f15c5
commit a3ef7170b1

View File

@@ -566,11 +566,11 @@ static void php_session_save_current_state(TSRMLS_D)
ulong num_key;
HashPosition pos;
if (!PG(register_globals)) {
if (!PS(http_session_vars)) {
return;
}
if (!PG(register_globals) && !PS(http_session_vars)) {
return;
}
if (PS(http_session_vars)) {
for (zend_hash_internal_pointer_reset_ex(Z_ARRVAL_P(PS(http_session_vars)), &pos);
zend_hash_get_current_key_ex(Z_ARRVAL_P(PS(http_session_vars)), &variable, &variable_len, &num_key, 0, &pos) == HASH_KEY_IS_STRING;
zend_hash_move_forward_ex(Z_ARRVAL_P(PS(http_session_vars)),&pos)) {