]> granicus.if.org Git - php/commitdiff
Fix build with no memory_limit
authorZeev Suraski <zeev@php.net>
Sat, 19 Aug 2000 16:51:30 +0000 (16:51 +0000)
committerZeev Suraski <zeev@php.net>
Sat, 19 Aug 2000 16:51:30 +0000 (16:51 +0000)
Zend/zend_alloc.c

index f33aee46d8bc91f25d0b9edfd6d593f4b4b6bee0..4591a804beecfe0196e6e31a3b07d40f19fe69be 100644 (file)
@@ -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 {