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.
2 parents 56bf10f + 8161230 commit 1e042aeCopy full SHA for 1e042ae
ext/session/session.c
@@ -1620,9 +1620,7 @@ PHPAPI void php_session_start(void) /* {{{ */
1620
PS(id) = NULL;
1621
}
1622
1623
- php_session_initialize();
1624
- php_session_cache_limiter();
1625
-
+ /* GC must be done before reading session data. */
1626
if ((PS(mod_data) || PS(mod_user_implemented)) && PS(gc_probability) > 0) {
1627
int nrdels = -1;
1628
@@ -1636,6 +1634,9 @@ PHPAPI void php_session_start(void) /* {{{ */
1636
1634
#endif
1637
1635
1638
+
+ php_session_initialize(TSRMLS_C);
1639
+ php_session_cache_limiter(TSRMLS_C);
1640
1641
/* }}} */
1642
0 commit comments