summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2019-06-20 10:35:38 +0200
committerNikita Popov <nikita.ppv@gmail.com>2019-06-20 10:35:38 +0200
commita2d0899e7426f5e324556a6ffe2af226f962367e (patch)
tree07b5564460b243de42b19adf7b2b30cec4ff111c
parent477f4fec6d2a5ac0a7a064dcb122feaac6bbffe7 (diff)
parente162a1c02e2e233b6b1a23bb651a0fb6d344a474 (diff)
downloadphp-git-a2d0899e7426f5e324556a6ffe2af226f962367e.tar.gz
Merge branch 'PHP-7.4'
-rw-r--r--ext/opcache/Optimizer/zend_inference.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/opcache/Optimizer/zend_inference.c b/ext/opcache/Optimizer/zend_inference.c
index e67084b02a..e9d22646e6 100644
--- a/ext/opcache/Optimizer/zend_inference.c
+++ b/ext/opcache/Optimizer/zend_inference.c
@@ -627,6 +627,9 @@ static int zend_inference_calc_binary_op_range(
op2_min = OP2_MIN_RANGE();
op1_max = OP1_MAX_RANGE();
op2_max = OP2_MAX_RANGE();
+ /* Suppress uninit variable warnings, these will only be used if the overflow
+ * flags are all false. */
+ t1 = t2 = t3 = t4 = 0;
ZEND_SIGNED_MULTIPLY_LONG(op1_min, op2_min, t1, dummy, t1_overflow);
ZEND_SIGNED_MULTIPLY_LONG(op1_min, op2_max, t2, dummy, t2_overflow);
ZEND_SIGNED_MULTIPLY_LONG(op1_max, op2_min, t3, dummy, t3_overflow);