From: Dmitry Stogov Date: Thu, 24 Jan 2019 15:00:45 +0000 (+0300) Subject: Fixed crash X-Git-Tag: php-7.4.0alpha1~1161 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4887896e218381ebefbde35f0ca166f14ffc4100;p=php Fixed crash --- diff --git a/ext/opcache/Optimizer/zend_inference.c b/ext/opcache/Optimizer/zend_inference.c index d9e882c5b9..69ccda0d06 100644 --- a/ext/opcache/Optimizer/zend_inference.c +++ b/ext/opcache/Optimizer/zend_inference.c @@ -2345,7 +2345,7 @@ static zend_property_info *zend_fetch_static_prop_info(const zend_script *script ce = op_array->scope; break; case ZEND_FETCH_CLASS_PARENT: - if (op_array->scope) { + if (op_array->scope && (op_array->scope->ce_flags & ZEND_ACC_LINKED)) { ce = op_array->scope->parent; } break;