summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfoobar <sniper@php.net>2005-01-09 16:18:39 +0000
committerfoobar <sniper@php.net>2005-01-09 16:18:39 +0000
commit2da8b014affc2cf3c1ca2678cf42d58c1d3895f3 (patch)
tree4ac921630148a7ae0d3c055ce35d9bbf603ac7a6
parent54e954f852bc5dac789357b2062b33cd0390a89b (diff)
downloadphp-git-2da8b014affc2cf3c1ca2678cf42d58c1d3895f3.tar.gz
MFB: - Rationalize code a bit
-rw-r--r--Zend/zend.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/Zend/zend.c b/Zend/zend.c
index 7737280c0a..2b28a21eb5 100644
--- a/Zend/zend.c
+++ b/Zend/zend.c
@@ -495,23 +495,18 @@ static void zend_new_thread_end_handler(THREAD_T thread_id TSRMLS_DC)
zend_ini_refresh_caches(ZEND_INI_STAGE_STARTUP TSRMLS_CC);
}
+static void alloc_globals_dtor(zend_alloc_globals *alloc_globals_p TSRMLS_DC)
+{
+ shutdown_memory_manager(0, 1 TSRMLS_CC);
+}
#endif
-
static void alloc_globals_ctor(zend_alloc_globals *alloc_globals_p TSRMLS_DC)
{
start_memory_manager(TSRMLS_C);
}
-#ifdef ZTS
-static void alloc_globals_dtor(zend_alloc_globals *alloc_globals_p TSRMLS_DC)
-{
- shutdown_memory_manager(0, 1 TSRMLS_CC);
-}
-#endif
-
-
#if defined(__FreeBSD__) || defined(__DragonFly__)
/* FreeBSD and DragonFly floating point precision fix */
#include <floatingpoint.h>
@@ -707,6 +702,7 @@ void zend_shutdown(TSRMLS_D)
zend_hash_destroy(GLOBAL_AUTO_GLOBALS_TABLE);
free(GLOBAL_AUTO_GLOBALS_TABLE);
+
zend_shutdown_extensions(TSRMLS_C);
free(zend_version_info);