1
0
mirror of https://github.com/php/php-src.git synced 2026-04-05 15:12:39 +02:00

Fixed support for numeric string keys

This commit is contained in:
Dmitry Stogov
2021-09-16 11:33:01 +03:00
parent 12f9dad185
commit ceaefdb01b

View File

@@ -773,7 +773,7 @@ zend_jit_trace_stop ZEND_FASTCALL zend_jit_trace_execute(zend_execute_data *ex,
if (Z_TYPE_P(dim) == IS_LONG) {
val = zend_hash_index_find(Z_ARRVAL_P(arr), Z_LVAL_P(dim));
} else /*if Z_TYPE_P(dim) == IS_STRING)*/ {
val = zend_hash_find(Z_ARRVAL_P(arr), Z_STR_P(dim));
val = zend_symtable_find(Z_ARRVAL_P(arr), Z_STR_P(dim));
}
if (val) {
val_type = Z_TYPE_P(val);