It doesn't make sense to colect garbage after fatal errors

This commit is contained in:
Dmitry Stogov 2015-01-23 16:40:16 +03:00
parent f71e64e53a
commit 46e486ff3d

View File

@ -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;
}