summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Zend/zend_builtin_functions.c2
-rw-r--r--Zend/zend_hash.h2
2 files changed, 3 insertions, 1 deletions
diff --git a/Zend/zend_builtin_functions.c b/Zend/zend_builtin_functions.c
index cf41e5e269..f3b5086a16 100644
--- a/Zend/zend_builtin_functions.c
+++ b/Zend/zend_builtin_functions.c
@@ -807,7 +807,7 @@ ZEND_FUNCTION(get_declared_classes)
}
array_init(return_value);
- zend_hash_apply_with_arguments(CG(class_table), copy_class_name, 1, return_value);
+ zend_hash_apply_with_arguments(CG(class_table), (apply_func_args_t)copy_class_name, 1, return_value);
}
/* }}} */
diff --git a/Zend/zend_hash.h b/Zend/zend_hash.h
index 13f03c4357..64057ecf30 100644
--- a/Zend/zend_hash.h
+++ b/Zend/zend_hash.h
@@ -108,6 +108,8 @@ typedef struct _zend_hash_key {
} zend_hash_key;
+typedef int (*apply_func_args_t)(void *pDest, int num_args, va_list args, zend_hash_key *hash_key);
+
#define ZEND_STD_HASH_APPLIER \
int (*)(void *element, int num_args, va_list args, zend_hash_key *hash_key)