diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2017-06-25 17:55:56 +0200 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2017-06-25 18:26:03 +0200 |
commit | ee8e75aab4eeb88dde05b98fa982bbee745819b2 (patch) | |
tree | 675598d2ea0d874fb9f161a62206ac98b60d7715 /Zend/zend_API.h | |
parent | 205807f60ed3e76b318bbd398e51b764c7e2317d (diff) | |
download | php-git-ee8e75aab4eeb88dde05b98fa982bbee745819b2.tar.gz |
Extract zend_get_callable_name() API
Instead of interleaving this inside zend_is_callable(), implement
this in a separate function instead.
Also add _deref() hash APIs. I've wanted these for a while, and
this is another place where they're useful, so finally do it...
Diffstat (limited to 'Zend/zend_API.h')
-rw-r--r-- | Zend/zend_API.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Zend/zend_API.h b/Zend/zend_API.h index df04be1fbe..4ce6d91b87 100644 --- a/Zend/zend_API.h +++ b/Zend/zend_API.h @@ -323,6 +323,8 @@ ZEND_API ZEND_COLD void zend_wrong_param_count(void); #define IS_CALLABLE_STRICT (IS_CALLABLE_CHECK_IS_STATIC) +ZEND_API zend_string *zend_get_callable_name_ex(zval *callable, zend_object *object); +ZEND_API zend_string *zend_get_callable_name(zval *callable); ZEND_API zend_bool zend_is_callable_ex(zval *callable, zend_object *object, uint32_t check_flags, zend_string **callable_name, zend_fcall_info_cache *fcc, char **error); ZEND_API zend_bool zend_is_callable(zval *callable, uint32_t check_flags, zend_string **callable_name); ZEND_API zend_bool zend_make_callable(zval *callable, zend_string **callable_name); |