mirror of
https://github.com/php/php-src.git
synced 2025-08-16 22:18:50 +02:00
Made an alias for hash apply with arguments.
This commit is contained in:
parent
420d668f33
commit
b51aa1f36f
2 changed files with 3 additions and 1 deletions
|
@ -807,7 +807,7 @@ ZEND_FUNCTION(get_declared_classes)
|
||||||
}
|
}
|
||||||
|
|
||||||
array_init(return_value);
|
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;
|
} 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 \
|
#define ZEND_STD_HASH_APPLIER \
|
||||||
int (*)(void *element, int num_args, va_list args, zend_hash_key *hash_key)
|
int (*)(void *element, int num_args, va_list args, zend_hash_key *hash_key)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue