summaryrefslogtreecommitdiff
path: root/Zend/zend.c
diff options
context:
space:
mode:
authorZeev Suraski <zeev@php.net>2001-08-05 01:37:10 +0000
committerZeev Suraski <zeev@php.net>2001-08-05 01:37:10 +0000
commitfcc035108f7b8d2e169c5a592227b3df84d0573e (patch)
treed0a42c8d70caa6234b98d5a1d6f33e518c3837d4 /Zend/zend.c
parent1f3faae3523071c45fbe074c51804a43c05aa55b (diff)
downloadphp-git-fcc035108f7b8d2e169c5a592227b3df84d0573e.tar.gz
TSRMLS_FETCH work
Diffstat (limited to 'Zend/zend.c')
-rw-r--r--Zend/zend.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/Zend/zend.c b/Zend/zend.c
index fe24a67956..abd8b49477 100644
--- a/Zend/zend.c
+++ b/Zend/zend.c
@@ -329,6 +329,12 @@ static void alloc_globals_ctor(zend_alloc_globals *alloc_globals_p TSRMLS_DC)
}
+static void alloc_globals_dtor(zend_alloc_globals *alloc_globals_p TSRMLS_DC)
+{
+ shutdown_memory_manager(0, 1);
+}
+
+
#ifdef __FreeBSD__
/* FreeBSD floating point precision fix */
#include <floatingpoint.h>
@@ -350,7 +356,7 @@ int zend_startup(zend_utility_functions *utility_functions, char **extensions, i
zend_executor_globals *executor_globals;
void ***tsrm_ls;
- ts_allocate_id(&alloc_globals_id, sizeof(zend_alloc_globals), (ts_allocate_ctor) alloc_globals_ctor, NULL);
+ ts_allocate_id(&alloc_globals_id, sizeof(zend_alloc_globals), (ts_allocate_ctor) alloc_globals_ctor, (ts_allocate_dtor) alloc_globals_dtor);
#else
alloc_globals_ctor(&alloc_globals TSRMLS_CC);
#endif