1
0
mirror of https://github.com/php/php-src.git synced 2026-04-16 20:41:18 +02:00

Prefer reloading key->h

This commit is contained in:
Dmitry Stogov
2018-04-02 23:43:37 +03:00
parent db307eae03
commit dc091870ea

View File

@@ -533,7 +533,7 @@ static zend_always_inline Bucket *zend_hash_find_bucket(const HashTable *ht, zen
p = HT_HASH_TO_BUCKET_EX(arData, idx);
if (EXPECTED(p->key == key)) { /* check for the same interned string */
return p;
} else if (EXPECTED(p->h == h) &&
} else if (EXPECTED(p->h == ZSTR_H(key)) &&
EXPECTED(p->key) &&
EXPECTED(zend_string_equal_content(p->key, key))) {
return p;