diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2002-09-26 18:12:27 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2002-09-26 18:12:27 +0000 |
commit | 57c91b571e214867d5677eed875a71b07dc3fbef (patch) | |
tree | 874ee0d05939f6c4010e3b059b417d66fcc16233 /ext/session | |
parent | c7c275b741d457367b26e8dafa5d2913bf2c75fd (diff) | |
download | php-git-57c91b571e214867d5677eed875a71b07dc3fbef.tar.gz |
Fixed bug #11643
Diffstat (limited to 'ext/session')
-rw-r--r-- | ext/session/session.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/ext/session/session.c b/ext/session/session.c index ab276fdbd9..45c415046a 100644 --- a/ext/session/session.c +++ b/ext/session/session.c @@ -826,6 +826,7 @@ PHPAPI void php_session_start(TSRMLS_D) int module_number = PS(module_number); int nrand; int lensess; + zend_constant *c; PS(apply_trans_sid) = PS(use_trans_sid); @@ -919,7 +920,11 @@ PHPAPI void php_session_start(TSRMLS_D) php_session_send_cookie(TSRMLS_C); } - + /* check if SID constant exists, if it does destroy it. */ + if (zend_hash_find(EG(zend_constants), "sid", 4, (void **) &c) != FAILURE) { + zend_hash_del(EG(zend_constants), "sid", 4); + } + if (define_sid) { smart_str var = {0}; |