Commit e31d8e082d8 for php.net

commit e31d8e082d8b9c7e97431d708bcafa10bcaf9b6b
Author: Gina Peter Banyard <girgias@php.net>
Date:   Sun Aug 2 21:14:50 2026 +0100

    Zend: move some basic forwarding function definitions to the header (#22936)

diff --git a/Zend/zend_API.c b/Zend/zend_API.c
index 517c5894e1d..71754b9ab75 100644
--- a/Zend/zend_API.c
+++ b/Zend/zend_API.c
@@ -4138,12 +4138,6 @@ ZEND_API bool zend_fcc_closure_equals_ex(const zend_fcall_info_cache* a, const z
 }
 /* }}} */

-ZEND_API zend_string *zend_get_callable_name(const zval *callable) /* {{{ */
-{
-	return zend_get_callable_name_ex(callable, NULL);
-}
-/* }}} */
-
 ZEND_API bool zend_is_callable_at_frame(
 		const zval *callable, zend_object *object, const zend_execute_data *frame,
 		uint32_t check_flags, zend_fcall_info_cache *fcc, char **error) /* {{{ */
@@ -4281,12 +4275,6 @@ ZEND_API bool zend_is_callable_ex(const zval *callable, zend_object *object, uin
 	return ret;
 }

-ZEND_API bool zend_is_callable(const zval *callable, uint32_t check_flags, zend_string **callable_name) /* {{{ */
-{
-	return zend_is_callable_ex(callable, NULL, check_flags, callable_name, NULL, NULL);
-}
-/* }}} */
-
 ZEND_API zend_result zend_fcall_info_init(const zval *callable, uint32_t check_flags, zend_fcall_info *fci, zend_fcall_info_cache *fcc, zend_string **callable_name, char **error) /* {{{ */
 {
 	if (!zend_is_callable_ex(callable, NULL, check_flags, callable_name, fcc, error)) {
diff --git a/Zend/zend_API.h b/Zend/zend_API.h
index 622e90da59b..34c316bca58 100644
--- a/Zend/zend_API.h
+++ b/Zend/zend_API.h
@@ -415,12 +415,20 @@ ZEND_API ZEND_COLD void zend_wrong_property_read(const zval *object, zval *prope

 ZEND_API void zend_release_fcall_info_cache(zend_fcall_info_cache *fcc);
 ZEND_API zend_string *zend_get_callable_name_ex(const zval *callable, const zend_object *object);
-ZEND_API zend_string *zend_get_callable_name(const zval *callable);
+static zend_always_inline zend_string *zend_get_callable_name(const zval *callable)
+{
+	return zend_get_callable_name_ex(callable, NULL);
+}
+
 ZEND_API bool zend_is_callable_at_frame(
 		const zval *callable, zend_object *object, const zend_execute_data *frame,
 		uint32_t check_flags, zend_fcall_info_cache *fcc, char **error);
 ZEND_API bool zend_is_callable_ex(const zval *callable, zend_object *object, uint32_t check_flags, zend_string **callable_name, zend_fcall_info_cache *fcc, char **error);
-ZEND_API bool zend_is_callable(const zval *callable, uint32_t check_flags, zend_string **callable_name);
+static zend_always_inline bool zend_is_callable(const zval *callable, uint32_t check_flags, zend_string **callable_name)
+{
+	return zend_is_callable_ex(callable, NULL, check_flags, callable_name, NULL, NULL);
+}
+
 ZEND_API const char *zend_get_module_version(const char *module_name);
 ZEND_API zend_result zend_get_module_started(const char *module_name);