From: Andrei Zmievski Date: Thu, 26 Oct 2000 17:37:47 +0000 (+0000) Subject: session_unset() now cleans up $HTTP_SESSION_VARS as well. X-Git-Tag: php-4.0.4RC3~531 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=27a1c12ad8da37d389158f26295b54d565829d60;p=php session_unset() now cleans up $HTTP_SESSION_VARS as well. --- diff --git a/ext/session/session.c b/ext/session/session.c index 78cbd794cd..288f17096f 100644 --- a/ext/session/session.c +++ b/ext/session/session.c @@ -1354,6 +1354,9 @@ PHP_FUNCTION(session_unset) zend_hash_del(&EG(symbol_table), variable, strlen(variable) + 1); efree(variable); } + + /* Clean $HTTP_SESSION_VARS. */ + zend_hash_clean(Z_ARRVAL_P(PS(http_session_vars))); } /* }}} */