Skip to content

Commit

Permalink
Fixed support for numeric string keys
Browse files Browse the repository at this point in the history
  • Loading branch information
dstogov committed Sep 16, 2021
1 parent 12f9dad commit ceaefdb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/opcache/jit/zend_jit_vm_helpers.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ceaefdb

Please sign in to comment.