We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ece6cc commit 0c3743dCopy full SHA for 0c3743d
ext/reflection/php_reflection.c
@@ -6410,15 +6410,12 @@ ZEND_METHOD(ReflectionAttribute, getName)
6410
6411
static zend_always_inline int import_attribute_value(zval *ret, zval *val, zend_class_entry *scope) /* {{{ */
6412
{
6413
+ ZVAL_COPY_OR_DUP(ret, val);
6414
if (Z_TYPE_P(val) == IS_CONSTANT_AST) {
- *ret = *val;
6415
- //ZVAL_COPY(ret, val);
6416
-
6417
if (FAILURE == zval_update_constant_ex(ret, scope)) {
+ zval_ptr_dtor(ret);
6418
return FAILURE;
6419
}
6420
- } else {
6421
- ZVAL_COPY_OR_DUP(ret, val);
6422
6423
6424
return SUCCESS;
0 commit comments