com php-src: Fixed incorrect FETCH_THIS optimization: e xt/opcache/jit/zend_jit_trace.c

From: Date: Mon, 16 Nov 2020 11:51:39 +0000
Subject: com php-src: Fixed incorrect FETCH_THIS optimization: e xt/opcache/jit/zend_jit_trace.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-114148@lists.php.net to get a copy of this message
Commit: edf5c1901f81160e8c3ac9827c0b4adc230f1b1a Author: Dmitry Stogov <dmitry@zend.com> Mon, 16 Nov 2020 14:51:39 +0300 Parents: bd321df47925db2186d6a95e16e9ebca036b08ca Branches: PHP-8.0 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=edf5c1901f81160e8c3ac9827c0b4adc230f1b1a Log: Fixed incorrect FETCH_THIS optimization Changed paths: M ext/opcache/jit/zend_jit_trace.c Diff: diff --git a/ext/opcache/jit/zend_jit_trace.c b/ext/opcache/jit/zend_jit_trace.c index 31ab4fab068..9acb47b3fe6 100644 --- a/ext/opcache/jit/zend_jit_trace.c +++ b/ext/opcache/jit/zend_jit_trace.c @@ -5332,7 +5332,7 @@ static const void *zend_jit_trace(zend_jit_trace_rec *trace_buffer, uint32_t par goto done; case ZEND_FETCH_THIS: delayed_fetch_this = 0; - if (ssa_op->result_def >= 0) { + if (ssa_op->result_def >= 0 && opline->result_type != IS_CV) { if (zend_jit_may_delay_fetch_this(ssa, ssa_opcodes, ssa_op->result_def)) { ssa->var_info[ssa_op->result_def].delayed_fetch_this = 1; delayed_fetch_this = 1;

« previous php.cvs (#114148) next »