mirror of
https://github.com/php/php-src.git
synced 2025-08-16 22:18:50 +02:00
Use symtable lookup for arrays in array_column
This commit is contained in:
parent
28801bf249
commit
d8590940a1
2 changed files with 24 additions and 1 deletions
|
@ -3534,7 +3534,7 @@ static inline zval *array_column_fetch_prop(zval *data, zval *name, zval *rv)
|
|||
}
|
||||
} else if (Z_TYPE_P(data) == IS_ARRAY) {
|
||||
if (Z_TYPE_P(name) == IS_STRING) {
|
||||
prop = zend_hash_find(Z_ARRVAL_P(data), Z_STR_P(name));
|
||||
prop = zend_symtable_find(Z_ARRVAL_P(data), Z_STR_P(name));
|
||||
} else if (Z_TYPE_P(name) == IS_LONG) {
|
||||
prop = zend_hash_index_find(Z_ARRVAL_P(data), Z_LVAL_P(name));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue