Skip to content

Commit 0ff71ae

Browse files
committed
Fixed crash
1 parent 24085b1 commit 0ff71ae

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ext/opcache/Optimizer/zend_inference.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2285,7 +2285,8 @@ static zend_property_info *lookup_prop_info(zend_class_entry *ce, zend_string *n
22852285
zend_property_info *prop_info;
22862286

22872287
/* If the class is linked, reuse the precise runtime logic. */
2288-
if (ce->ce_flags & ZEND_ACC_LINKED) {
2288+
if ((ce->ce_flags & ZEND_ACC_LINKED)
2289+
&& (!scope || (scope->ce_flags & ZEND_ACC_LINKED))) {
22892290
zend_class_entry *prev_scope = EG(fake_scope);
22902291
EG(fake_scope) = scope;
22912292
prop_info = zend_get_property_info(ce, name, 1);

0 commit comments

Comments
 (0)