com php-src: typo: ext/opcache/Optimizer/zend_ssa.c
| From: | Dmitry Stogov | Date: | Mon, 31 Oct 2016 18:39:34 +0000 |
| Subject: | com php-src: typo: ext/opcache/Optimizer/zend_ssa.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-95370@lists.php.net to get a copy of this message | ||
Commit: d3325ff771c85e1741eecf37d86aef2e50ee4fd8
Author: Dmitry Stogov <dmitry@zend.com> Mon, 31 Oct 2016 21:39:34 +0300
Parents: e696927e48b5433417a46a7377f2554d91755f89
Branches: PHP-7.1 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=d3325ff771c85e1741eecf37d86aef2e50ee4fd8
Log:
typo
Changed paths:
M ext/opcache/Optimizer/zend_ssa.c
Diff:
diff --git a/ext/opcache/Optimizer/zend_ssa.c b/ext/opcache/Optimizer/zend_ssa.c
index 5372583..80de03b 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);