summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2015-05-18 23:06:23 +0300
committerDmitry Stogov <dmitry@zend.com>2015-05-18 23:06:23 +0300
commitfb8891d9fc670fbe1930a5cfbccab0dfe241b603 (patch)
treefd6f1d183901fa7aa434a84e5fa7e544d880517d
parentcee88571d9dbb2d56b78b312919aea190580d9e5 (diff)
downloadphp-git-fb8891d9fc670fbe1930a5cfbccab0dfe241b603.tar.gz
Reset heap usage statistics on request shutdown
-rw-r--r--Zend/zend_alloc.c1
1 files changed, 1 insertions, 0 deletions
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
}
}