]> granicus.if.org Git - php/commitdiff
typo
authorDmitry Stogov <dmitry@zend.com>
Mon, 31 Oct 2016 18:39:34 +0000 (21:39 +0300)
committerDmitry Stogov <dmitry@zend.com>
Mon, 31 Oct 2016 18:39:34 +0000 (21:39 +0300)
ext/opcache/Optimizer/zend_ssa.c

index 537258394fe564d637e48e88a0531d2c02a28302..80de03b698850a10103c3f14f530fb7c5965c21b 100644 (file)
@@ -192,7 +192,7 @@ static int find_adjusted_tmp_var(const zend_op_array *op_array, uint32_t build_f
                                        return EX_VAR_TO_NUM(op->op1.var);
                                }
                        } else if (op->op2_type == IS_CV && op->op1_type == IS_CONST) {
-                               zv = CRT_CONSTANT(op->op2);
+                               zv = CRT_CONSTANT(op->op1);
                                if (Z_TYPE_P(zv) == IS_LONG
                                 && Z_LVAL_P(zv) != ZEND_LONG_MIN) {
                                        *adjustment = -Z_LVAL_P(zv);