summaryrefslogtreecommitdiff
path: root/Zend/zend_alloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/zend_alloc.c')
-rw-r--r--Zend/zend_alloc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/Zend/zend_alloc.c b/Zend/zend_alloc.c
index 4f02af00d4..13e74e814d 100644
--- a/Zend/zend_alloc.c
+++ b/Zend/zend_alloc.c
@@ -470,8 +470,12 @@ ZEND_API void start_memory_manager(TSRMLS_D)
ZEND_API void shutdown_memory_manager(int silent, int clean_cache TSRMLS_DC)
{
+#if ZEND_DEBUG || !defined(ZEND_MM)
zend_mem_header *p, *t;
+#endif
+#if ZEND_DEBUG
zend_uint grand_total_leaks=0;
+#endif
#if defined(ZEND_MM) && !ZEND_DEBUG
if (clean_cache) {