mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Always use IS_CONSTANT_AST (IS_CONSTANT is removed).
This commit is contained in:
parent
08c0998b1f
commit
ef5ea48741
31 changed files with 229 additions and 235 deletions
|
@ -1071,7 +1071,7 @@ static void add_class_vars(zend_class_entry *scope, zend_class_entry *ce, int st
|
|||
|
||||
/* this is necessary to make it able to work with default array
|
||||
* properties, returned to user */
|
||||
if (Z_OPT_CONSTANT_P(prop)) {
|
||||
if (Z_OPT_TYPE_P(prop) == IS_CONSTANT_AST) {
|
||||
if (UNEXPECTED(zval_update_constant_ex(prop, NULL) != SUCCESS)) {
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue