Skip to content

Commit b64cd42

Browse files
committed
reflection: Use RETURN_COPY_VALUE()
1 parent b074c5c commit b64cd42

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ext/reflection/php_reflection.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2144,7 +2144,7 @@ ZEND_METHOD(ReflectionFunction, invoke)
21442144
if (Z_ISREF(retval)) {
21452145
zend_unwrap_reference(&retval);
21462146
}
2147-
ZVAL_COPY_VALUE(return_value, &retval);
2147+
RETURN_COPY_VALUE(&retval);
21482148
}
21492149
/* }}} */
21502150

@@ -2177,7 +2177,7 @@ ZEND_METHOD(ReflectionFunction, invokeArgs)
21772177
if (Z_ISREF(retval)) {
21782178
zend_unwrap_reference(&retval);
21792179
}
2180-
ZVAL_COPY_VALUE(return_value, &retval);
2180+
RETURN_COPY_VALUE(&retval);
21812181
}
21822182
/* }}} */
21832183

@@ -3487,7 +3487,7 @@ static void reflection_method_invoke(INTERNAL_FUNCTION_PARAMETERS, int variadic)
34873487
if (Z_ISREF(retval)) {
34883488
zend_unwrap_reference(&retval);
34893489
}
3490-
ZVAL_COPY_VALUE(return_value, &retval);
3490+
RETURN_COPY_VALUE(&retval);
34913491
}
34923492
/* }}} */
34933493

0 commit comments

Comments
 (0)