mirror of
https://github.com/php/php-src.git
synced 2024-11-24 10:24:11 +08:00
It doesn't make sense to colect garbage after fatal errors
This commit is contained in:
parent
f71e64e53a
commit
46e486ff3d
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user