From: Zeev Suraski Date: Sat, 19 Aug 2000 16:51:30 +0000 (+0000) Subject: Fix build with no memory_limit X-Git-Tag: php-4.0.2RC1~59 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=79b0a56c51945d4191678dd4ff646e25ac73bed0;p=php Fix build with no memory_limit --- 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 {