summaryrefslogtreecommitdiff
path: root/Zend/zend_hash.h
diff options
context:
space:
mode:
authorThies C. Arntzen <thies@php.net>2000-01-15 13:40:17 +0000
committerThies C. Arntzen <thies@php.net>2000-01-15 13:40:17 +0000
commitc93a18902813679776c482b352fb20f3e430a1cd (patch)
tree3e0fa9597450341ad1915836fdcacd678028b167 /Zend/zend_hash.h
parentbf4d20aaa892bc5246a6bf84c41a34bf0a7b2e78 (diff)
downloadphp-git-c93a18902813679776c482b352fb20f3e430a1cd.tar.gz
if ZEND_DEBUG mode is on we'll now see warnings when a HashTable is accessed
while it's inconsistent. Zeev, Andi - you welcome to revert this patch if you don't like it - i find it useful! accesssing inconsistent hashtables is one of the hardest things to track!
Diffstat (limited to 'Zend/zend_hash.h')
-rw-r--r--Zend/zend_hash.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Zend/zend_hash.h b/Zend/zend_hash.h
index dc2a469a54..feefc73105 100644
--- a/Zend/zend_hash.h
+++ b/Zend/zend_hash.h
@@ -60,6 +60,9 @@ typedef struct hashtable {
Bucket **arBuckets;
int (*pDestructor) (void *pData);
unsigned char persistent;
+#if ZEND_DEBUG
+ int inconsistent;
+#endif
} HashTable;
typedef int (*compare_func_t) (const void *, const void *);