diff --git a/ext/opcache/jit/zend_jit_helpers.c b/ext/opcache/jit/zend_jit_helpers.c index 24b0e6518c5..8fa258008af 100644 --- a/ext/opcache/jit/zend_jit_helpers.c +++ b/ext/opcache/jit/zend_jit_helpers.c @@ -254,8 +254,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) { retval = zend_undefined_offset_write(ht, idx); }