We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent df2c656 commit 03a3291Copy full SHA for 03a3291
ext/session/session.c
@@ -437,6 +437,7 @@ static void php_session_initialize(TSRMLS_D)
437
} else if (PS(invalid_session_id)) { /* address instances where the session read fails due to an invalid id */
438
PS(invalid_session_id) = 0;
439
efree(PS(id));
440
+ PS(id) = NULL;
441
goto new_session;
442
}
443
@@ -1592,6 +1593,7 @@ static PHP_FUNCTION(session_regenerate_id)
1592
1593
RETURN_FALSE;
1594
1595
1596
1597
1598
1599
PS(id) = PS(mod)->s_create_sid(&PS(mod_data), NULL TSRMLS_CC);
0 commit comments