diff options
| author | Zeev Suraski <zeev@php.net> | 2000-07-11 14:27:31 +0000 |
|---|---|---|
| committer | Zeev Suraski <zeev@php.net> | 2000-07-11 14:27:31 +0000 |
| commit | 1263932a0dd7065497f97dc89d13df74d75ac382 (patch) | |
| tree | 8f03f7b7eb25196c709a0832a5e377c44698188c /Zend/zend_hash.h | |
| parent | 148317f979327bb038ca831d7e481d49503965ed (diff) | |
| download | php-git-1263932a0dd7065497f97dc89d13df74d75ac382.tar.gz | |
Disable the hash_apply() protection on hashes that persist across requests - it's unsafe
because we may be aborted at any point
Diffstat (limited to 'Zend/zend_hash.h')
| -rw-r--r-- | Zend/zend_hash.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Zend/zend_hash.h b/Zend/zend_hash.h index 2c722660cb..4b838463dc 100644 --- a/Zend/zend_hash.h +++ b/Zend/zend_hash.h @@ -68,6 +68,7 @@ typedef struct _hashtable { dtor_func_t pDestructor; zend_bool persistent; unsigned char nApplyCount; + zend_bool bApplyProtection; #if ZEND_DEBUG int inconsistent; #endif @@ -79,6 +80,7 @@ BEGIN_EXTERN_C() /* startup/shutdown */ ZEND_API int zend_hash_init(HashTable *ht, uint nSize, hash_func_t pHashFunction, dtor_func_t pDestructor, int persistent); +ZEND_API int zend_hash_init_ex(HashTable *ht, uint nSize, hash_func_t pHashFunction, dtor_func_t pDestructor, int persistent, zend_bool bApplyProtection); ZEND_API void zend_hash_destroy(HashTable *ht); ZEND_API void zend_hash_clean(HashTable *ht); |
