From: Sebastian Bergmann Date: Fri, 19 Apr 2002 16:43:27 +0000 (+0000) Subject: MFZE1: Fix imbalance bug (Zeev). X-Git-Tag: php-4.3.0dev-ZendEngine2-Preview1~563 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2697ce689d5362ab58fb914a16ee501917f9e18b;p=php MFZE1: Fix imbalance bug (Zeev). --- 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) \