diff options
author | Sascha Schumann <sas@php.net> | 2002-05-04 18:33:13 +0000 |
---|---|---|
committer | Sascha Schumann <sas@php.net> | 2002-05-04 18:33:13 +0000 |
commit | 9743860d35c17da9b36c104c16cb06122d6cf6f6 (patch) | |
tree | 06d63c81ef2ada41067498b05d5174de4d21d9eb /ext/session/session.c | |
parent | ebfff2df7e350557c72424311e94ca1984184a40 (diff) | |
download | php-git-9743860d35c17da9b36c104c16cb06122d6cf6f6.tar.gz |
simplify handling of variables by maintaining two strings which
are simply appended instead of traversing the hash table on each
URL/form.
also fix an unconditional segfault in rshutdown due to efree'ing
a static char *.
remove remove_var, add reset_vars. move the function declarations
into the right header file.
Diffstat (limited to 'ext/session/session.c')
-rw-r--r-- | ext/session/session.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/session/session.c b/ext/session/session.c index aea119aac6..a028851c34 100644 --- a/ext/session/session.c +++ b/ext/session/session.c @@ -1379,7 +1379,9 @@ PHP_FUNCTION(session_unset) static void php_rinit_session_globals(TSRMLS_D) { zend_hash_init(&PS(vars), 0, NULL, NULL, 0); - php_url_scanner_remove_var(PS(session_name), strlen(PS(session_name)) TSRMLS_CC); /* save even if we haven't registered */ +#if I_KNOW_WHAT_THE_PURPOSE_OF_THIS_IS + php_url_scanner_reset_vars(TSRMLS_C); /* save even if we haven't registered */ +#endif PS(id) = NULL; PS(session_status) = php_session_none; PS(mod_data) = NULL; |