summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBob Weinand <bobwei9@hotmail.com>2016-04-30 20:46:52 +0200
committerBob Weinand <bobwei9@hotmail.com>2016-04-30 20:46:52 +0200
commitf59de7ea368da55f1f21ca82810febb3cdec06f0 (patch)
treece1ce38ea7f3cdc34191f2cf77cc40b9841572b9
parent0615c59a4fef83e0d90384c5f5664e72874c680c (diff)
downloadphp-git-f59de7ea368da55f1f21ca82810febb3cdec06f0.tar.gz
Export zend_pass_function to allow comparisons against it
-rw-r--r--Zend/zend_execute.c2
-rw-r--r--Zend/zend_execute.h3
2 files changed, 4 insertions, 1 deletions
diff --git a/Zend/zend_execute.c b/Zend/zend_execute.c
index 017def1585..8213164d24 100644
--- a/Zend/zend_execute.c
+++ b/Zend/zend_execute.c
@@ -75,7 +75,7 @@ static ZEND_FUNCTION(pass)
{
}
-static const zend_internal_function zend_pass_function = {
+ZEND_API const zend_internal_function zend_pass_function = {
ZEND_INTERNAL_FUNCTION, /* type */
{0, 0, 0}, /* arg_flags */
0, /* fn_flags */
diff --git a/Zend/zend_execute.h b/Zend/zend_execute.h
index 011a4f126a..36a44f6395 100644
--- a/Zend/zend_execute.h
+++ b/Zend/zend_execute.h
@@ -50,6 +50,9 @@ ZEND_API int zend_eval_stringl(char *str, size_t str_len, zval *retval_ptr, char
ZEND_API int zend_eval_string_ex(char *str, zval *retval_ptr, char *string_name, int handle_exceptions);
ZEND_API int zend_eval_stringl_ex(char *str, size_t str_len, zval *retval_ptr, char *string_name, int handle_exceptions);
+/* export zend_pass_function to allow comparisons against it */
+extern ZEND_API const zend_internal_function zend_pass_function;
+
ZEND_API void ZEND_FASTCALL zend_check_internal_arg_type(zend_function *zf, uint32_t arg_num, zval *arg);
ZEND_API int ZEND_FASTCALL zend_check_arg_type(zend_function *zf, uint32_t arg_num, zval *arg, zval *default_value, void **cache_slot);
ZEND_API void ZEND_FASTCALL zend_check_missing_arg(zend_execute_data *execute_data, uint32_t arg_num, void **cache_slot);