com php-src: Maybe we should introduce a symtable_exists_in d: ext/standard/array.c
| From: | Xinchen Hui | Date: | Tue, 01 Mar 2016 12:01:02 +0000 |
| Subject: | com php-src: Maybe we should introduce a symtable_exists_in d: ext/standard/array.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-91217@lists.php.net to get a copy of this message | ||
Commit: 961c8d568d420f6398bc72faa5fd435e63633398
Author: Xinchen Hui <laruence@gmail.com> Tue, 1 Mar 2016 20:01:02 +0800
Parents: 996760f1046e49261b7da0a4d125d4a9096897f3
Branches: PHP-7.0 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=961c8d568d420f6398bc72faa5fd435e63633398
Log:
Maybe we should introduce a symtable_exists_ind
Changed paths:
M ext/standard/array.c
Diff:
diff --git a/ext/standard/array.c b/ext/standard/array.c
index 6c824cb..6eb85bb 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;