From: Xinchen Hui Date: Wed, 2 Mar 2016 04:11:13 +0000 (+0800) Subject: Use hash_exists_ind in symbol table X-Git-Tag: php-7.0.5RC1~39 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2d4186dde758f0efee029a5d9e3363494e9ad168;p=php Use hash_exists_ind in symbol table --- diff --git a/Zend/zend_hash.h b/Zend/zend_hash.h index 0f1580df88..e90763ce8c 100644 --- a/Zend/zend_hash.h +++ b/Zend/zend_hash.h @@ -380,7 +380,7 @@ 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); + return zend_hash_exists_ind(ht, key); } } diff --git a/ext/standard/array.c b/ext/standard/array.c index 6eb85bbec8..def7d7c465 100644 --- a/ext/standard/array.c +++ b/ext/standard/array.c @@ -5429,7 +5429,7 @@ PHP_FUNCTION(array_key_exists) switch (Z_TYPE_P(key)) { case IS_STRING: - if (zend_symtable_find_ind(array, Z_STR_P(key))) { + if (zend_symtable_exists(array, Z_STR_P(key))) { RETURN_TRUE; } RETURN_FALSE;