mirror of
https://github.com/php/php-src.git
synced 2024-12-04 15:23:44 +08:00
Fixed bug #11643
This commit is contained in:
parent
c7c275b741
commit
57c91b571e
@ -826,6 +826,7 @@ PHPAPI void php_session_start(TSRMLS_D)
|
|||||||
int module_number = PS(module_number);
|
int module_number = PS(module_number);
|
||||||
int nrand;
|
int nrand;
|
||||||
int lensess;
|
int lensess;
|
||||||
|
zend_constant *c;
|
||||||
|
|
||||||
PS(apply_trans_sid) = PS(use_trans_sid);
|
PS(apply_trans_sid) = PS(use_trans_sid);
|
||||||
|
|
||||||
@ -919,6 +920,10 @@ PHPAPI void php_session_start(TSRMLS_D)
|
|||||||
php_session_send_cookie(TSRMLS_C);
|
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) {
|
if (define_sid) {
|
||||||
smart_str var = {0};
|
smart_str var = {0};
|
||||||
|
Loading…
Reference in New Issue
Block a user