summaryrefslogtreecommitdiff
path: root/ext/session/session.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/session/session.c')
-rw-r--r--ext/session/session.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/ext/session/session.c b/ext/session/session.c
index dae965b048..d8f92d2d57 100644
--- a/ext/session/session.c
+++ b/ext/session/session.c
@@ -2399,6 +2399,10 @@ static PHP_GINIT_FUNCTION(ps) /* {{{ */
{
int i;
+#if defined(COMPILE_DL_SESSION) && defined(ZTS)
+ ZEND_TSRMLS_CACHE_UPDATE;
+#endif
+
ps_globals->save_path = NULL;
ps_globals->session_name = NULL;
ps_globals->id = NULL;
@@ -2825,6 +2829,9 @@ zend_module_entry session_module_entry = {
};
#ifdef COMPILE_DL_SESSION
+#ifdef ZTS
+ZEND_TSRMLS_CACHE_DEFINE;
+#endif
ZEND_GET_MODULE(session)
#endif