diff options
author | Marcus Boerger <helly@php.net> | 2005-07-28 20:55:50 +0000 |
---|---|---|
committer | Marcus Boerger <helly@php.net> | 2005-07-28 20:55:50 +0000 |
commit | 53e526066202ac612b461bb11b24b5952291824c (patch) | |
tree | 99fe84242d5773cf77dc0bf289869cd69cd67af9 /Zend/zend_API.h | |
parent | 0a89e44ed7d5fe20925dd02db1964288239920e2 (diff) | |
download | php-git-53e526066202ac612b461bb11b24b5952291824c.tar.gz |
- Add convenience function zend_is_callable_ex() and base zend_is_callable
and zend_make_callable on it. This functions allows to check if a php
variable is a callable function and returns its function pointer as well
as object if possible.
# Commit this now so we can use it in 5.1.* series as discussed with Andi.
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 e28fa1b7c6..8e914d80b3 100644 --- a/Zend/zend_API.h +++ b/Zend/zend_API.h @@ -196,7 +196,9 @@ ZEND_API void zend_wrong_param_count(TSRMLS_D); #define IS_CALLABLE_CHECK_SYNTAX_ONLY (1<<0) #define IS_CALLABLE_CHECK_NO_ACCESS (1<<1) +#define IS_CALLABLE_CHECK_IS_STATIC (1<<2) +ZEND_API zend_bool zend_is_callable_ex(zval *callable, uint check_flags, char **callable_name, int *callable_name_len, zend_function **fptr_ptr, zval ***zobj_ptr_ptr TSRMLS_DC); ZEND_API zend_bool zend_is_callable(zval *callable, uint check_flags, char **callable_name); ZEND_API zend_bool zend_make_callable(zval *callable, char **callable_name TSRMLS_DC); ZEND_API char *zend_get_module_version(char *module_name); |