From: Stanislav Malyshev Date: Sun, 9 Jul 2000 10:31:47 +0000 (+0000) Subject: Fix stupid bug. X-Git-Tag: PRE_FILE_COMPILE_API_CHANGE~345 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ad271a2b33c4d92936a1dcdcd01472fd79607654;p=php Fix stupid bug. --- diff --git a/ext/session/session.c b/ext/session/session.c index 5b685eadb0..2861feb58c 100644 --- a/ext/session/session.c +++ b/ext/session/session.c @@ -487,16 +487,16 @@ static void _php_session_save_current_state(PSLS_D) ulong num_key; PLS_FETCH(); - if(!PS(http_session_vars)) { - return; - } - if (!PG(register_globals)) { - for (zend_hash_internal_pointer_reset(PS(http_session_vars)->value.ht); - zend_hash_get_current_key(PS(http_session_vars)->value.ht, &variable, &num_key) == HASH_KEY_IS_STRING; - zend_hash_move_forward(PS(http_session_vars)->value.ht)) { - PS_ADD_VAR(variable); - } + if(!PS(http_session_vars)) { + return; + } + + for (zend_hash_internal_pointer_reset(PS(http_session_vars)->value.ht); + zend_hash_get_current_key(PS(http_session_vars)->value.ht, &variable, &num_key) == HASH_KEY_IS_STRING; + zend_hash_move_forward(PS(http_session_vars)->value.ht)) { + PS_ADD_VAR(variable); + } } val = _php_session_encode(&vallen PSLS_CC);