Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions ext/opcache/jit/zend_jit_helpers.c
Original file line number Diff line number Diff line change
Expand Up @@ -2837,8 +2837,7 @@ static void ZEND_FASTCALL zend_jit_assign_to_typed_prop(zval *property_val, zend
return;
}

ZVAL_DEREF(value);
ZVAL_COPY(&tmp, value);
ZVAL_COPY_DEREF(&tmp, value);

if (UNEXPECTED(!zend_verify_property_type(info, &tmp, EX_USES_STRICT_TYPES()))) {
zval_ptr_dtor(&tmp);
Expand Down Expand Up @@ -2992,8 +2991,7 @@ static void ZEND_FASTCALL zend_jit_inc_typed_prop(zval *var_ptr, zend_property_i
zend_execute_data *execute_data = EG(current_execute_data);
zval tmp;

ZVAL_DEREF(var_ptr);
ZVAL_COPY(&tmp, var_ptr);
ZVAL_COPY_DEREF(&tmp, var_ptr);

increment_function(var_ptr);

Expand Down Expand Up @@ -3024,8 +3022,7 @@ static void ZEND_FASTCALL zend_jit_dec_typed_prop(zval *var_ptr, zend_property_i
zend_execute_data *execute_data = EG(current_execute_data);
zval tmp;

ZVAL_DEREF(var_ptr);
ZVAL_COPY(&tmp, var_ptr);
ZVAL_COPY_DEREF(&tmp, var_ptr);

decrement_function(var_ptr);

Expand Down
Loading