1
0
mirror of https://github.com/php/php-src.git synced 2026-04-14 03:22:58 +02:00

Don't call _zend_hash_index_find() for packed arrays

This commit is contained in:
Dmitry Stogov
2021-11-08 13:13:23 +03:00
parent 7bf63243e1
commit e868ded6ef

View File

@@ -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;