summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRouven Weßling <me@rouvenwessling.de>2013-12-25 17:00:32 +0100
committerRouven Weßling <me@rouvenwessling.de>2014-01-25 00:04:50 +0100
commitaee6344e2469dd0d896a79ae963d4a95d52f47e1 (patch)
treebc087194684451c8cfaac5b0a616f1dd9662d626
parent69af35718253b3d106074b7133f8c74322468674 (diff)
downloadphp-git-aee6344e2469dd0d896a79ae963d4a95d52f47e1.tar.gz
Add ZEND_ARG_CALLABLE_INFO to allow internal function to type hint against callable.
-rw-r--r--Zend/zend_API.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Zend/zend_API.h b/Zend/zend_API.h
index 84acfcac88..17672ffc99 100644
--- a/Zend/zend_API.h
+++ b/Zend/zend_API.h
@@ -101,6 +101,7 @@ typedef struct _zend_fcall_info_cache {
#define ZEND_ARG_INFO(pass_by_ref, name) { #name, sizeof(#name)-1, NULL, 0, 0, 0, pass_by_ref},
#define ZEND_ARG_PASS_INFO(pass_by_ref) { NULL, 0, NULL, 0, 0, 0, pass_by_ref},
#define ZEND_ARG_OBJ_INFO(pass_by_ref, name, classname, allow_null) { #name, sizeof(#name)-1, #classname, sizeof(#classname)-1, IS_OBJECT, allow_null, pass_by_ref},
+#define ZEND_ARG_CALLABLE_INFO(pass_by_ref, name, allow_null) { #name, sizeof(#name)-1, NULL, 0, IS_CALLABLE, allow_null, pass_by_ref },
#define ZEND_ARG_ARRAY_INFO(pass_by_ref, name, allow_null) { #name, sizeof(#name)-1, NULL, 0, IS_ARRAY, allow_null, pass_by_ref},
#define ZEND_ARG_TYPE_INFO(pass_by_ref, name, type_hint, allow_null) { #name, sizeof(#name)-1, NULL, 0, type_hint, allow_null, pass_by_ref},
#define ZEND_BEGIN_ARG_INFO_EX(name, pass_rest_by_reference, return_reference, required_num_args) \