From: Dmitry Stogov Date: Mon, 18 May 2015 20:06:23 +0000 (+0300) Subject: Reset heap usage statistics on request shutdown X-Git-Tag: PRE_PHP7_NSAPI_REMOVAL~42^2~54 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fb8891d9fc670fbe1930a5cfbccab0dfe241b603;p=php Reset heap usage statistics on request shutdown --- diff --git a/Zend/zend_alloc.c b/Zend/zend_alloc.c index 8f88368bc3..2d47b643c3 100644 --- a/Zend/zend_alloc.c +++ b/Zend/zend_alloc.c @@ -2048,6 +2048,7 @@ void zend_mm_shutdown(zend_mm_heap *heap, int full, int silent) #endif #if ZEND_MM_STAT heap->real_peak = ZEND_MM_CHUNK_SIZE; + heap->size = heap->peak = 0; #endif } }