From: Ilia Alshanetsky Date: Sun, 29 Sep 2002 15:26:50 +0000 (+0000) Subject: Fixed bugs #16995 and #19392 X-Git-Tag: MODERN_SYMMETRIC_SESSION_BEHAVIOUR_20021003~93 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1142e16075e747eebde27668252949fb7e69518d;p=php Fixed bugs #16995 and #19392 --- diff --git a/ext/session/session.c b/ext/session/session.c index 45c415046a..d15e4e94b4 100644 --- a/ext/session/session.c +++ b/ext/session/session.c @@ -570,6 +570,10 @@ static void php_session_save_current_state(TSRMLS_D) return; } + if (PS(http_session_vars) && PS(http_session_vars)->type!=IS_ARRAY) { + 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;