]> granicus.if.org Git - php/commitdiff
session_unset() now cleans up $HTTP_SESSION_VARS as well.
authorAndrei Zmievski <andrei@php.net>
Thu, 26 Oct 2000 17:37:47 +0000 (17:37 +0000)
committerAndrei Zmievski <andrei@php.net>
Thu, 26 Oct 2000 17:37:47 +0000 (17:37 +0000)
ext/session/session.c

index 78cbd794cdff321caf9c5521ac67f98e091ecac5..288f17096ffdd18bccfc28aeecb283356dc0bca1 100644 (file)
@@ -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)));
 }
 /* }}} */