Skip to content

Commit 4887896

Browse files
committed
Fixed crash
1 parent 5e4c6de commit 4887896

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/opcache/Optimizer/zend_inference.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2345,7 +2345,7 @@ static zend_property_info *zend_fetch_static_prop_info(const zend_script *script
23452345
ce = op_array->scope;
23462346
break;
23472347
case ZEND_FETCH_CLASS_PARENT:
2348-
if (op_array->scope) {
2348+
if (op_array->scope && (op_array->scope->ce_flags & ZEND_ACC_LINKED)) {
23492349
ce = op_array->scope->parent;
23502350
}
23512351
break;

0 commit comments

Comments
 (0)