summaryrefslogtreecommitdiff
path: root/Zend/zend_hash.h
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2016-03-02 11:53:47 +0300
committerDmitry Stogov <dmitry@zend.com>2016-03-02 11:53:47 +0300
commitab800642df3e66bdc00b433234a4e38c156b731c (patch)
tree467ec52b678d5ffe347e24a5865544e304e066be /Zend/zend_hash.h
parent1ce0ea7396a917f3e68037df3647c4118f3a9fec (diff)
downloadphp-git-ab800642df3e66bdc00b433234a4e38c156b731c.tar.gz
Introduce zend_symtable_exists_ind() for API consistency
Diffstat (limited to 'Zend/zend_hash.h')
-rw-r--r--Zend/zend_hash.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/Zend/zend_hash.h b/Zend/zend_hash.h
index e90763ce8c..f4c2c30fbc 100644
--- a/Zend/zend_hash.h
+++ b/Zend/zend_hash.h
@@ -380,6 +380,18 @@ static zend_always_inline int zend_symtable_exists(HashTable *ht, zend_string *k
if (ZEND_HANDLE_NUMERIC(key, idx)) {
return zend_hash_index_exists(ht, idx);
} else {
+ return zend_hash_exists(ht, key);
+ }
+}
+
+
+static zend_always_inline int zend_symtable_exists_ind(HashTable *ht, zend_string *key)
+{
+ zend_ulong idx;
+
+ if (ZEND_HANDLE_NUMERIC(key, idx)) {
+ return zend_hash_index_exists(ht, idx);
+ } else {
return zend_hash_exists_ind(ht, key);
}
}