Skip to content

Commit 08ffc9a

Browse files
committed
Resolve constants only in linked classes
1 parent 8d3429c commit 08ffc9a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ext/opcache/ZendAccelerator.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3308,7 +3308,8 @@ static void preload_link(void)
33083308
if (ce->type == ZEND_INTERNAL_CLASS) {
33093309
break;
33103310
}
3311-
if (!(ce->ce_flags & ZEND_ACC_CONSTANTS_UPDATED)) {
3311+
if ((ce->ce_flags & ZEND_ACC_LINKED)
3312+
&& !(ce->ce_flags & ZEND_ACC_CONSTANTS_UPDATED)) {
33123313
zend_bool ok = 1;
33133314
zend_class_constant *c;
33143315
zval *val;

0 commit comments

Comments
 (0)