[php-src] master: Zend: move some basic forwarding function definitions to the header (#22936)

From: Date: Sun, 02 Aug 2026 20:14:53 +0000
Subject: [php-src] master: Zend: move some basic forwarding function definitions to the header (#22936)
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-140413@lists.php.net to get a copy of this message
Author: Gina Peter Banyard (Girgias) Committer: GitHub (web-flow) Pusher: Girgias Date: 2026-08-02T21:14:50+01:00 Commit: https://github.com/php/php-src/commit/e31d8e082d8b9c7e97431d708bcafa10bcaf9b6b Raw diff: https://github.com/php/php-src/commit/e31d8e082d8b9c7e97431d708bcafa10bcaf9b6b.diff Zend: move some basic forwarding function definitions to the header (#22936) Changed paths: M Zend/zend_API.c M Zend/zend_API.h Diff: diff --git a/Zend/zend_API.c b/Zend/zend_API.c index 517c5894e1d0..71754b9ab755 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 622e90da59b2..34c316bca588 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);

« previous php.cvs (#140413) next »