]> granicus.if.org Git - php/commitdiff
Export zend_pass_function to allow comparisons against it
authorBob Weinand <bobwei9@hotmail.com>
Sat, 30 Apr 2016 18:46:52 +0000 (20:46 +0200)
committerBob Weinand <bobwei9@hotmail.com>
Sat, 30 Apr 2016 18:46:52 +0000 (20:46 +0200)
Zend/zend_execute.c
Zend/zend_execute.h

index 017def1585f801f6962075c8c545ac8fbeff1c7c..8213164d24d7f29a63042f2e4d4b25eca2969934 100644 (file)
@@ -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          */
index 011a4f126ae95c690285463eaa5c8a3cc249921c..36a44f6395969da8ca65181fc09ae1a7901c80e8 100644 (file)
@@ -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);