Commit 46ab6952715 for php.net
commit 46ab6952715e76954eebc548ed885b1f381fd8af
Author: Gina Peter Banyard <girgias@php.net>
Date: Thu Jul 30 21:21:25 2026 +0100
Zend: rename zend_is_callable_check_func function
Rename it to zend_is_string_callable as it is more descriptive
diff --git a/Zend/zend_API.c b/Zend/zend_API.c
index c8959328d37..261c74eac39 100644
--- a/Zend/zend_API.c
+++ b/Zend/zend_API.c
@@ -3818,7 +3818,7 @@ ZEND_API void zend_release_fcall_info_cache(zend_fcall_info_cache *fcc) {
}
}
-static zend_always_inline bool zend_is_callable_check_func(zend_string *callable, const zend_execute_data *frame, zend_fcall_info_cache *fcc, bool strict_class, char **error, bool suppress_deprecation) /* {{{ */
+static zend_always_inline bool zend_is_string_callable(zend_string *callable, const zend_execute_data *frame, zend_fcall_info_cache *fcc, bool strict_class, char **error, bool suppress_deprecation) /* {{{ */
{
zend_class_entry *ce_org = fcc->calling_scope;
bool retval = false;
@@ -4188,7 +4188,7 @@ ZEND_API bool zend_is_callable_at_frame(
}
check_func:
- ret = zend_is_callable_check_func(Z_STR_P(callable), frame, fcc, strict_class, error, check_flags & IS_CALLABLE_SUPPRESS_DEPRECATIONS);
+ ret = zend_is_string_callable(Z_STR_P(callable), frame, fcc, strict_class, error, check_flags & IS_CALLABLE_SUPPRESS_DEPRECATIONS);
if (fcc == &fcc_local) {
zend_release_fcall_info_cache(fcc);
}