]> granicus.if.org Git - php/commitdiff
SAPI globals are destroied at this point and reporting errors about memory leaks
authorDmitry Stogov <dmitry@php.net>
Fri, 2 Jun 2006 13:31:38 +0000 (13:31 +0000)
committerDmitry Stogov <dmitry@php.net>
Fri, 2 Jun 2006 13:31:38 +0000 (13:31 +0000)
 can cause crash.

Zend/zend.c

index 6afcf6d369c0281665498a4ae5f00f406654ba67..b848f6d91cc7c7a6c6822dfd25b729000ef76ce3 100644 (file)
@@ -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