summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndi Gutmans <andi@php.net>1999-08-14 09:55:43 +0000
committerAndi Gutmans <andi@php.net>1999-08-14 09:55:43 +0000
commit7145d1a21ad480103c3069ca6d631a1589297601 (patch)
tree32fe8d4a8b4c50862c58bb922e33841d586bbfce
parent25829488c436232011631e85a90eae429710476b (diff)
downloadphp-git-7145d1a21ad480103c3069ca6d631a1589297601.tar.gz
- Make the non-threadsafe version compile again
-rw-r--r--main/main.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/main/main.c b/main/main.c
index 63f0519f21..ed599f9742 100644
--- a/main/main.c
+++ b/main/main.c
@@ -804,9 +804,8 @@ int php_module_startup(sapi_module_struct *sf)
zuf.get_ini_entry = php_get_ini_entry_for_zend;
zend_startup(&zuf, NULL);
- tsrm_set_new_thread_end_handler(php_new_thread_end_handler);
-
#ifdef ZTS
+ tsrm_set_new_thread_end_handler(php_new_thread_end_handler);
core_globals_id = ts_allocate_id(sizeof(php_core_globals), NULL, NULL);
core_globals = ts_resource(core_globals_id);
#endif