From 79b0a56c51945d4191678dd4ff646e25ac73bed0 Mon Sep 17 00:00:00 2001 From: Zeev Suraski Date: Sat, 19 Aug 2000 16:51:30 +0000 Subject: [PATCH] Fix build with no memory_limit --- Zend/zend_alloc.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Zend/zend_alloc.c b/Zend/zend_alloc.c index f33aee46d8..4591a804be 100644 --- a/Zend/zend_alloc.c +++ b/Zend/zend_alloc.c @@ -442,7 +442,9 @@ ZEND_API void shutdown_memory_manager(int silent, int clean_cache) } } #endif +#if MEMORY_LIMIT AG(allocated_memory) -= t->size; +#endif p = t->pNext; REMOVE_POINTER_FROM_LIST(t); free(t); @@ -459,7 +461,9 @@ ZEND_API void shutdown_memory_manager(int silent, int clean_cache) } } } +#if MEMORY_LIMIT AG(memory_exhausted)=0; +#endif #if (ZEND_DEBUG) do { -- 2.50.1