Skip to content

Commit

Permalink
Don't call _zend_hash_index_find() for packed arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
dstogov committed Nov 8, 2021
1 parent 7bf6324 commit e868ded
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ext/opcache/jit/zend_jit_helpers.c
Original file line number Diff line number Diff line change
Expand Up @@ -248,8 +248,11 @@ static zval* ZEND_FASTCALL zend_jit_symtable_find(HashTable *ht, zend_string *st

static zval* ZEND_FASTCALL zend_jit_hash_index_lookup_rw_no_packed(HashTable *ht, zend_long idx)
{
zval *retval = _zend_hash_index_find(ht, idx);
zval *retval = NULL;

if (!HT_IS_PACKED(ht)) {
retval = _zend_hash_index_find(ht, idx);
}
if (!retval) {
if (UNEXPECTED(zend_undefined_offset_write(ht, idx) == FAILURE)) {
return NULL;
Expand Down

0 comments on commit e868ded

Please sign in to comment.