summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorAndi Gutmans <andi@php.net>1999-06-06 18:56:11 +0000
committerAndi Gutmans <andi@php.net>1999-06-06 18:56:11 +0000
commitf5dbfbae84f8deaddaaf9dd6757665bab1fe9b53 (patch)
tree67c1866e83608214a02a91f3ed60a7e58b05bbf9 /ext
parented97964fbe08e64c96892e621866c3ed4eeae5a8 (diff)
downloadphp-git-f5dbfbae84f8deaddaaf9dd6757665bab1fe9b53.tar.gz
-Init tsrm on minit
Diffstat (limited to 'ext')
-rw-r--r--ext/session/session.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/session/session.c b/ext/session/session.c
index bc9c2d54ea..3b1f0fec6b 100644
--- a/ext/session/session.c
+++ b/ext/session/session.c
@@ -544,6 +544,9 @@ int php_rshutdown_session(SHUTDOWN_FUNC_ARGS)
int php_minit_session(INIT_FUNC_ARGS)
{
+#ifdef ZTS
+ ps_globals_id = ts_allocate_id(sizeof(php_ps_globals), NULL, NULL);
+#endif
REGISTER_INI_ENTRIES();
return SUCCESS;
}