1
0
mirror of https://github.com/php/php-src.git synced 2026-04-11 01:53:36 +02:00

Made an alias for hash apply with arguments.

This commit is contained in:
Andrei Zmievski
2000-06-09 20:18:16 +00:00
parent 420d668f33
commit b51aa1f36f
2 changed files with 3 additions and 1 deletions

View File

@@ -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 File

@@ -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)