From 916a3173852308bcd6d89bc6cb118faa58235d92 Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Fri, 2 Jun 2006 13:31:38 +0000 Subject: [PATCH] SAPI globals are destroied at this point and reporting errors about memory leaks can cause crash. --- Zend/zend.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Zend/zend.c b/Zend/zend.c index 6afcf6d369..b848f6d91c 100644 --- a/Zend/zend.c +++ b/Zend/zend.c @@ -871,7 +871,7 @@ static void zend_new_thread_end_handler(THREAD_T thread_id TSRMLS_DC) static void alloc_globals_dtor(zend_alloc_globals *alloc_globals_p TSRMLS_DC) { - shutdown_memory_manager(0, 1 TSRMLS_CC); + shutdown_memory_manager(1, 1 TSRMLS_CC); } #endif -- 2.40.0