From 46e486ff3d15b5c4b10988fc8acf7884ea69279f Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Fri, 23 Jan 2015 16:40:16 +0300 Subject: [PATCH] It doesn't make sense to colect garbage after fatal errors --- Zend/zend_gc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Zend/zend_gc.c b/Zend/zend_gc.c index 966b615b60c..986659dedc2 100644 --- a/Zend/zend_gc.c +++ b/Zend/zend_gc.c @@ -137,7 +137,7 @@ ZEND_API void gc_init(void) ZEND_API void gc_possible_root(zend_refcounted *ref) { - if (GC_TYPE(ref) == IS_NULL) { + if (UNEXPECTED(GC_TYPE(ref) == IS_NULL) || UNEXPECTED(CG(unclean_shutdown))) { return; }