Skip to content

Commit 1b2bde4

Browse files
authored
ext/opcache: use ZVAL_COPY_DEREF (#24071)
1 parent 03bf9cd commit 1b2bde4

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

‎ext/opcache/jit/zend_jit_helpers.c‎

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2837,8 +2837,7 @@ static void ZEND_FASTCALL zend_jit_assign_to_typed_prop(zval *property_val, zend
28372837
return;
28382838
}
28392839

2840-
ZVAL_DEREF(value);
2841-
ZVAL_COPY(&tmp, value);
2840+
ZVAL_COPY_DEREF(&tmp, value);
28422841

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

2995-
ZVAL_DEREF(var_ptr);
2996-
ZVAL_COPY(&tmp, var_ptr);
2994+
ZVAL_COPY_DEREF(&tmp, var_ptr);
29972995

29982996
increment_function(var_ptr);
29992997

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

3027-
ZVAL_DEREF(var_ptr);
3028-
ZVAL_COPY(&tmp, var_ptr);
3025+
ZVAL_COPY_DEREF(&tmp, var_ptr);
30293026

30303027
decrement_function(var_ptr);
30313028

0 commit comments

Comments
 (0)