mirror of
https://github.com/php/php-src.git
synced 2026-04-13 19:14:16 +02:00
Merge branch 'PHP-8.1'
* PHP-8.1: JIT: Fix incorrect reference-counting
This commit is contained in:
@@ -811,7 +811,7 @@ static zval* ZEND_FASTCALL zend_jit_fetch_dim_rw_helper(zend_array *ht, zval *di
|
||||
opline = EX(opline);
|
||||
zend_incompatible_double_to_long_error(Z_DVAL_P(dim));
|
||||
if (!(GC_FLAGS(ht) & IS_ARRAY_IMMUTABLE) && GC_DELREF(ht) != 1) {
|
||||
if (GC_REFCOUNT(ht)) {
|
||||
if (!GC_REFCOUNT(ht)) {
|
||||
zend_array_destroy(ht);
|
||||
}
|
||||
if (opline->result_type & (IS_VAR | IS_TMP_VAR)) {
|
||||
@@ -841,7 +841,7 @@ static zval* ZEND_FASTCALL zend_jit_fetch_dim_rw_helper(zend_array *ht, zval *di
|
||||
opline = EX(opline);
|
||||
zend_use_resource_as_offset(dim);
|
||||
if (!(GC_FLAGS(ht) & IS_ARRAY_IMMUTABLE) && GC_DELREF(ht) != 1) {
|
||||
if (GC_REFCOUNT(ht)) {
|
||||
if (!GC_REFCOUNT(ht)) {
|
||||
zend_array_destroy(ht);
|
||||
}
|
||||
if (opline->result_type & (IS_VAR | IS_TMP_VAR)) {
|
||||
|
||||
Reference in New Issue
Block a user