From: Dmitry Stogov Date: Fri, 2 Jun 2006 13:30:55 +0000 (+0000) Subject: SAPI globals are destroied at this point and reporting errors about memory leaks... X-Git-Tag: php-5.2.0RC1~384 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6c61aeb0124bff54aa75da0d82849fc87601e553;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 b445e34090..d63ec97198 100644 --- a/Zend/zend.c +++ b/Zend/zend.c @@ -517,7 +517,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