summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2016-10-31 21:39:34 +0300
committerDmitry Stogov <dmitry@zend.com>2016-10-31 21:39:34 +0300
commitd3325ff771c85e1741eecf37d86aef2e50ee4fd8 (patch)
tree27089d8941f0b2d1c25152848a42414b0f30936b
parente696927e48b5433417a46a7377f2554d91755f89 (diff)
downloadphp-git-d3325ff771c85e1741eecf37d86aef2e50ee4fd8.tar.gz
typo
-rw-r--r--ext/opcache/Optimizer/zend_ssa.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/opcache/Optimizer/zend_ssa.c b/ext/opcache/Optimizer/zend_ssa.c
index 537258394f..80de03b698 100644
--- a/ext/opcache/Optimizer/zend_ssa.c
+++ b/ext/opcache/Optimizer/zend_ssa.c
@@ -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);