From 76b9acc1659255fb0a834b80c8a62e4e15462f0d Mon Sep 17 00:00:00 2001 From: Andi Gutmans Date: Wed, 26 Dec 2001 11:18:00 +0000 Subject: [PATCH] - Fix crash correctly. --- Zend/zend.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Zend/zend.c b/Zend/zend.c index 40c752e1c0..1e945fc9da 100644 --- a/Zend/zend.c +++ b/Zend/zend.c @@ -493,8 +493,11 @@ void zend_shutdown(TSRMLS_D) zend_destroy_rsrc_list_dtors(); zend_hash_destroy(&module_registry); +#ifndef ZTS + /* In ZTS mode these are freed by compiler_globals_dtor() */ zend_hash_destroy(GLOBAL_FUNCTION_TABLE); -/* zend_hash_destroy(GLOBAL_CLASS_TABLE); FIXME */ + zend_hash_destroy(GLOBAL_CLASS_TABLE); +#endif zend_hash_destroy(GLOBAL_AUTO_GLOBALS_TABLE); free(GLOBAL_AUTO_GLOBALS_TABLE); -- 2.40.0