From: Dmitry Stogov Date: Fri, 2 Jun 2006 13:31:38 +0000 (+0000) Subject: SAPI globals are destroied at this point and reporting errors about memory leaks X-Git-Tag: BEFORE_NEW_OUTPUT_API~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=916a3173852308bcd6d89bc6cb118faa58235d92;p=php SAPI globals are destroied at this point and reporting errors about memory leaks can cause crash. --- 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