Permalink
Browse files

Made an alias for hash apply with arguments.

  • Loading branch information...
1 parent 420d668 commit b51aa1f36f16ab7beba93cd4ecec941b9f0937ed Andrei Zmievski committed Jun 9, 2000
Showing with 3 additions and 1 deletion.
  1. +1 −1 Zend/zend_builtin_functions.c
  2. +2 −0 Zend/zend_hash.h
@@ -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);
}
/* }}} */
View
@@ -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)

0 comments on commit b51aa1f

Please sign in to comment.