summaryrefslogtreecommitdiff
path: root/Zend/zend_hash.h
diff options
context:
space:
mode:
authorZeev Suraski <zeev@php.net>2000-01-16 20:59:03 +0000
committerZeev Suraski <zeev@php.net>2000-01-16 20:59:03 +0000
commitee08b81aabcbc65c9b10b535f028b3654b732e4a (patch)
treec008f5dbd7ce1d2e593ae99cdc4f9fe6d7f9f475 /Zend/zend_hash.h
parent97e1ad136a92e7fc55614e60e11ffef5862eb701 (diff)
downloadphp-git-ee08b81aabcbc65c9b10b535f028b3654b732e4a.tar.gz
- Make zend_hash_apply() (and friends) reentrant and much, much quicker
- Introduce zend_hash_graceful_destroy(), which allows the destructor functions to use zend_hash_apply() and/or zend_hash_graceful_destroy() - Switch to zend_hash_graceful_destroy() in the resource list shutdowns
Diffstat (limited to 'Zend/zend_hash.h')
-rw-r--r--Zend/zend_hash.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Zend/zend_hash.h b/Zend/zend_hash.h
index feefc73105..60ac82d65c 100644
--- a/Zend/zend_hash.h
+++ b/Zend/zend_hash.h
@@ -118,6 +118,7 @@ ZEND_API int zend_hash_pointer_index_update_or_next_insert(HashTable *ht, ulong
zend_hash_pointer_index_update_or_next_insert(ht,h,pData,HASH_UPDATE)
#define zend_hash_next_index_pointer_insert(ht,pData) \
zend_hash_pointer_index_update_or_next_insert(ht,0,pData,HASH_NEXT_INSERT)
+ZEND_API void zend_hash_graceful_destroy(HashTable *ht);
ZEND_API void zend_hash_apply(HashTable *ht,int (*destruct)(void *));
ZEND_API void zend_hash_apply_with_argument(HashTable *ht,int (*destruct)(void *, void *), void *);
ZEND_API void zend_hash_apply_with_arguments(HashTable *ht, ZEND_STD_HASH_APPLIER, int, ...);