com php-src: Export zend_pass_function to allow compa risons against it: Zend/zend_execute.c Zend/zend _execute.h
| From: | Bob Weinand | Date: | Sat, 30 Apr 2016 18:46:52 +0000 |
| Subject: | com php-src: Export zend_pass_function to allow compa risons against it: Zend/zend_execute.c Zend/zend _execute.h | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-91980@lists.php.net to get a copy of this message | ||
Commit: f59de7ea368da55f1f21ca82810febb3cdec06f0
Author: Bob Weinand <bobwei9@hotmail.com> Sat, 30 Apr 2016 20:46:52 +0200
Parents: 0615c59a4fef83e0d90384c5f5664e72874c680c
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=f59de7ea368da55f1f21ca82810febb3cdec06f0
Log:
Export zend_pass_function to allow comparisons against it
Changed paths:
M Zend/zend_execute.c
M Zend/zend_execute.h
Diff:
diff --git a/Zend/zend_execute.c b/Zend/zend_execute.c
index 017def1..8213164 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 011a4f1..36a44f6 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);