[php-src] master: ext/opcache: use ZVAL_COPY_DEREF (#24071)
| From: | Arshid via GitHub | Date: | Fri, 02 Oct 2026 11:40:57 +0000 |
| Subject: | [php-src] master: ext/opcache: use ZVAL_COPY_DEREF (#24071) | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-141879@lists.php.net to get a copy of this message | ||
Author: Arshid (arshidkv12)
Committer: GitHub (web-flow)
Pusher: TimWolla
Date: 2026-10-02T13:40:53+02:00
Commit: https://github.com/php/php-src/commit/1b2bde474ab06e5b4303754cc4b91ecb7eeee1a9
Raw diff: https://github.com/php/php-src/commit/1b2bde474ab06e5b4303754cc4b91ecb7eeee1a9.diff
ext/opcache: use ZVAL_COPY_DEREF (#24071)
Changed paths:
M ext/opcache/jit/zend_jit_helpers.c
Diff:
diff --git a/ext/opcache/jit/zend_jit_helpers.c b/ext/opcache/jit/zend_jit_helpers.c
index 660a17c05687..ec8554aa1857 100644
--- a/ext/opcache/jit/zend_jit_helpers.c
+++ b/ext/opcache/jit/zend_jit_helpers.c
@@ -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);
@@ -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);
@@ -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);