diff options
author | Dmitry Stogov <dmitry@zend.com> | 2019-07-22 11:59:49 +0300 |
---|---|---|
committer | Dmitry Stogov <dmitry@zend.com> | 2019-07-22 11:59:49 +0300 |
commit | 390810e1e628b50ac3b0fa006fd76c0745a6e404 (patch) | |
tree | 9446caa774f385740d072235f4fae1900f97d89f /ext/reflection/php_reflection.c | |
parent | a16ca769af1de657998315da53bdc2ec7a61db79 (diff) | |
parent | 2f51764e5d91da11d47a99ba444cd00185298e23 (diff) | |
download | php-git-390810e1e628b50ac3b0fa006fd76c0745a6e404.tar.gz |
Merge branch 'PHP-7.4'
* PHP-7.4:
Evaluate constant in class scope
Diffstat (limited to 'ext/reflection/php_reflection.c')
-rw-r--r-- | ext/reflection/php_reflection.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c index 729ec94924..6d129b1f26 100644 --- a/ext/reflection/php_reflection.c +++ b/ext/reflection/php_reflection.c @@ -3736,7 +3736,7 @@ static void add_class_vars(zend_class_entry *ce, int statics, zval *return_value /* this is necessary to make it able to work with default array * properties, returned to user */ if (Z_TYPE(prop_copy) == IS_CONSTANT_AST) { - if (UNEXPECTED(zval_update_constant_ex(&prop_copy, NULL) != SUCCESS)) { + if (UNEXPECTED(zval_update_constant_ex(&prop_copy, ce) != SUCCESS)) { return; } } |