mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Resolve constants only in linked classes
This commit is contained in:
parent
8d3429cda8
commit
08ffc9a552
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue