diff options
author | Dmitry Stogov <dmitry@zend.com> | 2016-05-04 17:33:35 +0300 |
---|---|---|
committer | Dmitry Stogov <dmitry@zend.com> | 2016-05-04 17:33:35 +0300 |
commit | b91197c8a3c5689f77255722d7beb0e9786bc432 (patch) | |
tree | 9296dbab7e4ffb56782547a669762308725f763d /Zend/zend_hash.c | |
parent | dc78e02ad240094e286174fab84881a32f58d070 (diff) | |
download | php-git-b91197c8a3c5689f77255722d7beb0e9786bc432.tar.gz |
Inlined fast path
Diffstat (limited to 'Zend/zend_hash.c')
-rw-r--r-- | Zend/zend_hash.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Zend/zend_hash.c b/Zend/zend_hash.c index e116ffe55e..1e3a9aa69a 100644 --- a/Zend/zend_hash.c +++ b/Zend/zend_hash.c @@ -2038,6 +2038,15 @@ ZEND_API zval* ZEND_FASTCALL zend_hash_index_find(const HashTable *ht, zend_ulon return p ? &p->val : NULL; } +ZEND_API zval* ZEND_FASTCALL _zend_hash_index_find(const HashTable *ht, zend_ulong h) +{ + Bucket *p; + + IS_CONSISTENT(ht); + + p = zend_hash_index_find_bucket(ht, h); + return p ? &p->val : NULL; +} ZEND_API zend_bool ZEND_FASTCALL zend_hash_index_exists(const HashTable *ht, zend_ulong h) { |