Skip to content

Commit dbb619d

Browse files
committed
Always use ZVAL_DUP()
1 parent c76604d commit dbb619d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Zend/zend.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -677,7 +677,7 @@ static void function_copy_ctor(zval *zv) /* {{{ */
677677
attr = zend_add_attribute(&func->common.attributes, old_attr->name, old_attr->argc, old_attr->flags, old_attr->offset, old_attr->lineno);
678678

679679
for (i = 0 ; i < old_attr->argc; i++) {
680-
ZVAL_COPY_OR_DUP(&attr->args[i].value, &old_attr->args[i].value);
680+
ZVAL_DUP(&attr->args[i].value, &old_attr->args[i].value);
681681
}
682682
} ZEND_HASH_FOREACH_END();
683683
}

0 commit comments

Comments
 (0)