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 9a31d70 commit 8161230Copy full SHA for 8161230
ext/session/session.c
@@ -1608,9 +1608,7 @@ PHPAPI void php_session_start(TSRMLS_D) /* {{{ */
1608
PS(id) = NULL;
1609
}
1610
1611
- php_session_initialize(TSRMLS_C);
1612
- php_session_cache_limiter(TSRMLS_C);
1613
-
+ /* GC must be done before reading session data. */
1614
if ((PS(mod_data) || PS(mod_user_implemented)) && PS(gc_probability) > 0) {
1615
int nrdels = -1;
1616
@@ -1624,6 +1622,9 @@ PHPAPI void php_session_start(TSRMLS_D) /* {{{ */
1624
1622
#endif
1625
1623
1626
+
+ php_session_initialize(TSRMLS_C);
1627
+ php_session_cache_limiter(TSRMLS_C);
1628
1629
/* }}} */
1630
0 commit comments