summaryrefslogtreecommitdiff
path: root/Zend/zend.c
diff options
context:
space:
mode:
authorZeev Suraski <zeev@php.net>1999-05-09 12:24:21 +0000
committerZeev Suraski <zeev@php.net>1999-05-09 12:24:21 +0000
commitbfbe86187e594ac1cc67518b4f1fc54e1cbacba8 (patch)
treee7314292a3c0bef1e1befbd7eda32f4dd02375d2 /Zend/zend.c
parentbc415d5a8883bbe5b15c12e9a30f916c8010204a (diff)
downloadphp-git-bfbe86187e594ac1cc67518b4f1fc54e1cbacba8.tar.gz
Almost forgot to commit those
Diffstat (limited to 'Zend/zend.c')
-rw-r--r--Zend/zend.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/Zend/zend.c b/Zend/zend.c
index b6f81a69cc..70e65349ed 100644
--- a/Zend/zend.c
+++ b/Zend/zend.c
@@ -204,12 +204,14 @@ static void compiler_globals_dtor(zend_compiler_globals *compiler_globals)
static void executor_globals_ctor(zend_executor_globals *executor_globals)
{
zend_startup_constants(ELS_C);
+ init_resource_plist(ELS_C);
}
static void executor_globals_dtor(zend_executor_globals *executor_globals)
{
zend_shutdown_constants(ELS_C);
+ destroy_resource_plist();
}
@@ -275,7 +277,9 @@ int zend_startup(zend_utility_functions *utility_functions, char **extensions)
compiler_globals->class_table = GLOBAL_CLASS_TABLE;
#endif
+#ifndef ZTS
init_resource_plist(ELS_C);
+#endif
return SUCCESS;
}
@@ -283,7 +287,9 @@ int zend_startup(zend_utility_functions *utility_functions, char **extensions)
void zend_shutdown()
{
+#ifndef ZTS
destroy_resource_plist();
+#endif
zend_hash_destroy(&list_destructors);
zend_hash_destroy(&module_registry);
zend_hash_destroy(GLOBAL_FUNCTION_TABLE);