Commit b64cd429ca4 for php.net

commit b64cd429ca4f6cadf9220c0a0cba4afbfe101687
Author: Niels Dossche <7771979+ndossche@users.noreply.github.com>
Date:   Fri Nov 28 18:46:52 2025 +0100

    reflection: Use RETURN_COPY_VALUE()

diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c
index 3327fdc7f6f..05454b24c4e 100644
--- a/ext/reflection/php_reflection.c
+++ b/ext/reflection/php_reflection.c
@@ -2144,7 +2144,7 @@ ZEND_METHOD(ReflectionFunction, invoke)
 	if (Z_ISREF(retval)) {
 		zend_unwrap_reference(&retval);
 	}
-	ZVAL_COPY_VALUE(return_value, &retval);
+	RETURN_COPY_VALUE(&retval);
 }
 /* }}} */

@@ -2177,7 +2177,7 @@ ZEND_METHOD(ReflectionFunction, invokeArgs)
 	if (Z_ISREF(retval)) {
 		zend_unwrap_reference(&retval);
 	}
-	ZVAL_COPY_VALUE(return_value, &retval);
+	RETURN_COPY_VALUE(&retval);
 }
 /* }}} */

@@ -3487,7 +3487,7 @@ static void reflection_method_invoke(INTERNAL_FUNCTION_PARAMETERS, int variadic)
 	if (Z_ISREF(retval)) {
 		zend_unwrap_reference(&retval);
 	}
-	ZVAL_COPY_VALUE(return_value, &retval);
+	RETURN_COPY_VALUE(&retval);
 }
 /* }}} */