From: Xinchen Hui Date: Tue, 1 Mar 2016 12:01:02 +0000 (+0800) Subject: Maybe we should introduce a symtable_exists_ind X-Git-Tag: php-7.0.5RC1~42 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=961c8d568d420f6398bc72faa5fd435e63633398;p=php Maybe we should introduce a symtable_exists_ind --- diff --git a/ext/standard/array.c b/ext/standard/array.c index 6c824cb037..6eb85bbec8 100644 --- a/ext/standard/array.c +++ b/ext/standard/array.c @@ -5414,7 +5414,6 @@ PHP_FUNCTION(array_map) PHP_FUNCTION(array_key_exists) { zval *key; /* key to check for */ - zval *val; /* val to check for */ HashTable *array; /* array to check in */ #ifndef FAST_ZPP @@ -5430,7 +5429,7 @@ PHP_FUNCTION(array_key_exists) switch (Z_TYPE_P(key)) { case IS_STRING: - if ((val = zend_symtable_find_ind(array, Z_STR_P(key)))) { + if (zend_symtable_find_ind(array, Z_STR_P(key))) { RETURN_TRUE; } RETURN_FALSE;