Skip to content

Commit 2f51764

Browse files
committed
Evaluate constant in class scope
1 parent 97b80bd commit 2f51764

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/reflection/php_reflection.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3738,7 +3738,7 @@ static void add_class_vars(zend_class_entry *ce, int statics, zval *return_value
37383738
/* this is necessary to make it able to work with default array
37393739
* properties, returned to user */
37403740
if (Z_TYPE(prop_copy) == IS_CONSTANT_AST) {
3741-
if (UNEXPECTED(zval_update_constant_ex(&prop_copy, NULL) != SUCCESS)) {
3741+
if (UNEXPECTED(zval_update_constant_ex(&prop_copy, ce) != SUCCESS)) {
37423742
return;
37433743
}
37443744
}

0 commit comments

Comments
 (0)