Browse Source

Fix build with no memory_limit

PHP-4.0.5
Zeev Suraski 26 years ago
parent
commit
79b0a56c51
  1. 4
      Zend/zend_alloc.c

4
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 {

Loading…
Cancel
Save