From: Ilia Alshanetsky Date: Mon, 11 Aug 2003 19:21:22 +0000 (+0000) Subject: MFH: Fixed bug #22245 (References inside $_SESSION not being handled). X-Git-Tag: php-4.3.3RC4~49 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=977ec5eb4ad718923391f489b27bea35722813b2;p=php MFH: Fixed bug #22245 (References inside $_SESSION not being handled). --- diff --git a/NEWS b/NEWS index c63fca2221..bd3080609b 100644 --- a/NEWS +++ b/NEWS @@ -18,6 +18,7 @@ PHP 4 NEWS (Marcus, Ilia) - Fixed bug #22947 (Ack() inside win32/sendmail.c may stall in certain situations). (Ilia) +- Fixed bug #22245 (References inside $_SESSION not being handled). (Ilia) - Fixed bug #21957 (serialize() mangles objects with __sleep). (Ilia) 07 Aug 2003, Version 4.3.3RC3 diff --git a/ext/session/session.c b/ext/session/session.c index 9e7cfc16c0..429c127e31 100644 --- a/ext/session/session.c +++ b/ext/session/session.c @@ -323,7 +323,7 @@ void php_set_session_var(char *name, size_t namelen, zval *state_val, php_unseri zend_set_hash_symbol(state_val, name, namelen, 1, 2, Z_ARRVAL_P(PS(http_session_vars)), &EG(symbol_table)); } } else IF_SESSION_VARS() { - zend_set_hash_symbol(state_val, name, namelen, 0, 1, Z_ARRVAL_P(PS(http_session_vars))); + zend_set_hash_symbol(state_val, name, namelen, PZVAL_IS_REF(state_val), 1, Z_ARRVAL_P(PS(http_session_vars))); } }