Skip to content

Commit

Permalink
Resolve constants only in linked classes
Browse files Browse the repository at this point in the history
  • Loading branch information
dstogov committed Nov 7, 2018
1 parent 8d3429c commit 08ffc9a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ext/opcache/ZendAccelerator.c
Original file line number Diff line number Diff line change
Expand Up @@ -3308,7 +3308,8 @@ static void preload_link(void)
if (ce->type == ZEND_INTERNAL_CLASS) {
break;
}
if (!(ce->ce_flags & ZEND_ACC_CONSTANTS_UPDATED)) {
if ((ce->ce_flags & ZEND_ACC_LINKED)
&& !(ce->ce_flags & ZEND_ACC_CONSTANTS_UPDATED)) {
zend_bool ok = 1;
zend_class_constant *c;
zval *val;
Expand Down

0 comments on commit 08ffc9a

Please sign in to comment.