From 2697ce689d5362ab58fb914a16ee501917f9e18b Mon Sep 17 00:00:00 2001 From: Sebastian Bergmann Date: Fri, 19 Apr 2002 16:43:27 +0000 Subject: [PATCH] MFZE1: Fix imbalance bug (Zeev). --- Zend/zend_hash.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Zend/zend_hash.c b/Zend/zend_hash.c index 7ef542c4df..694ba7f988 100644 --- a/Zend/zend_hash.c +++ b/Zend/zend_hash.c @@ -112,8 +112,10 @@ static void _zend_is_inconsistent(HashTable *ht, char *file, int line) } -#define HASH_UNPROTECT_RECURSION(ht) \ - (ht)->nApplyCount--; +#define HASH_UNPROTECT_RECURSION(ht) \ + if ((ht)->bApplyProtection) { \ + (ht)->nApplyCount--; \ + } #define ZEND_HASH_IF_FULL_DO_RESIZE(ht) \ -- 2.50.1