mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
we don't need php_sid
This commit is contained in:
parent
30c131c8ae
commit
2a39219142
2 changed files with 1 additions and 6 deletions
|
@ -91,7 +91,6 @@ typedef struct {
|
|||
int gc_maxlifetime;
|
||||
int module_number;
|
||||
const struct ps_serializer_struct *serializer;
|
||||
char *php_sid;
|
||||
} php_ps_globals;
|
||||
|
||||
extern zend_module_entry session_module_entry;
|
||||
|
|
|
@ -374,9 +374,7 @@ static void _php_session_start(PSLS_D)
|
|||
buf = emalloc(strlen(PS(session_name)) + strlen(PS(id)) + 5);
|
||||
sprintf(buf, "%s=%s", PS(session_name), PS(id));
|
||||
REGISTER_STRING_CONSTANT("SID", buf, 0);
|
||||
PS(php_sid) = buf;
|
||||
} else
|
||||
PS(php_sid) = NULL;
|
||||
}
|
||||
|
||||
PS(nr_open_sessions)++;
|
||||
|
||||
|
@ -644,8 +642,6 @@ static void php_rshutdown_session_globals(PSLS_D)
|
|||
{
|
||||
if(PS(mod_data))
|
||||
PS(mod)->close(&PS(mod_data));
|
||||
if(PS(php_sid))
|
||||
efree(PS(php_sid));
|
||||
efree(PS(save_path));
|
||||
efree(PS(session_name));
|
||||
if(PS(id)) efree(PS(id));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue