summaryrefslogtreecommitdiff
path: root/Zend/zend_hash.h
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@php.net>2005-12-05 08:56:09 +0000
committerDmitry Stogov <dmitry@php.net>2005-12-05 08:56:09 +0000
commit9ee0707cfaa13756e5e36309dbcd9d3edbc5ded3 (patch)
tree3c176adf9e3ced818a35fbfec73ef794396eec68 /Zend/zend_hash.h
parent6abf54a4895fb89b5d1f26ecc9c219ee3ea3d371 (diff)
downloadphp-git-9ee0707cfaa13756e5e36309dbcd9d3edbc5ded3.tar.gz
Fixed bug #35509 (string constant as array key has different behavior inside object)
Diffstat (limited to 'Zend/zend_hash.h')
-rw-r--r--Zend/zend_hash.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/Zend/zend_hash.h b/Zend/zend_hash.h
index 774c607418..f2b8c9b1f6 100644
--- a/Zend/zend_hash.h
+++ b/Zend/zend_hash.h
@@ -353,6 +353,12 @@ static inline int zend_symtable_exists(HashTable *ht, char *arKey, uint nKeyLeng
return zend_hash_exists(ht, arKey, nKeyLength);
}
+static inline int zend_symtable_update_current_key(HashTable *ht, char *arKey, uint nKeyLength)
+{
+ HANDLE_NUMERIC(arKey, nKeyLength, zend_hash_update_current_key(ht, HASH_KEY_IS_LONG, NULL, 0, idx));
+ return zend_hash_update_current_key(ht, HASH_KEY_IS_STRING, arKey, nKeyLength, 0);
+}
+
#endif /* ZEND_HASH_H */
/*