From: Dmitry Stogov Date: Wed, 11 Nov 2020 11:54:00 +0000 (+0300) Subject: Fixed reference-counting propagation X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a0de82ad752920ab46fc909621e96c7cca8c19da;p=php Fixed reference-counting propagation --- diff --git a/ext/opcache/jit/zend_jit_trace.c b/ext/opcache/jit/zend_jit_trace.c index c13ba1d485..85f09d3275 100644 --- a/ext/opcache/jit/zend_jit_trace.c +++ b/ext/opcache/jit/zend_jit_trace.c @@ -1751,6 +1751,9 @@ propagate_arg: } } } + if (opline->op1_type == IS_CV && (info & MAY_BE_RC1)) { + info |= MAY_BE_RCN; + } if (info & MAY_BE_UNDEF) { info |= MAY_BE_NULL; info &= ~MAY_BE_UNDEF;