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 e941703191..d778d6fd6c 100644
--- a/Zend/zend_alloc.c
+++ b/Zend/zend_alloc.c
@@ -397,6 +397,10 @@ ZEND_API void shutdown_memory_manager(int silent, int clean_cache)
zval display_memory_cache_stats;
int i, j;
+ if (clean_cache) {
+ /* we're shutting down completely, don't even touch the INI subsystem */
+ break;
+ }
if (zend_get_ini_entry("display_memory_cache_stats", sizeof("display_memory_cache_stats"), &display_memory_cache_stats)==FAILURE) {
break;
}