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:
@@ -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);
|
||||
}
|
||||
/* }}} */
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user