From f07e4c033cf4edda8dcbf14c5a964e4d283fa8a8 Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Thu, 30 Mar 2017 21:24:29 +0300 Subject: [PATCH] Allow SSA construction with source information about CV used as result (DFG fix) --- ext/opcache/Optimizer/zend_dfg.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ext/opcache/Optimizer/zend_dfg.c b/ext/opcache/Optimizer/zend_dfg.c index 374c8146c8a..6e6997b2a5a 100644 --- a/ext/opcache/Optimizer/zend_dfg.c +++ b/ext/opcache/Optimizer/zend_dfg.c @@ -191,6 +191,10 @@ op2_use: } if (opline->result_type & (IS_CV|IS_VAR|IS_TMP_VAR)) { var_num = EX_VAR_TO_NUM(opline->result.var); + if ((build_flags & ZEND_SSA_USE_CV_RESULTS) + && opline->result_type == IS_CV) { + DFG_SET(use, set_size, j, var_num); + } DFG_SET(def, set_size, j, var_num); } }