summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Zend/zend_hash.c6
1 files 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) \