com php-src: Fixed type inference bug: ext/opcache/Optimizer/ze nd_inference.c

From: Date: Wed, 07 Sep 2016 08:36:14 +0000
Subject: com php-src: Fixed type inference bug: ext/opcache/Optimizer/ze nd_inference.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-94355@lists.php.net to get a copy of this message
Commit: 6aa07c908309c3ce0b2c37c120ff8f2e734bde1a Author: Dmitry Stogov <dmitry@zend.com> Wed, 7 Sep 2016 11:36:14 +0300 Parents: 135f275836eb60ae8d8e97c770572dcfcc825c7c Branches: PHP-7.1 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=6aa07c908309c3ce0b2c37c120ff8f2e734bde1a Log: Fixed type inference bug Changed paths: M ext/opcache/Optimizer/zend_inference.c Diff: diff --git a/ext/opcache/Optimizer/zend_inference.c b/ext/opcache/Optimizer/zend_inference.c index 1e65a25..7505e14 100644 --- a/ext/opcache/Optimizer/zend_inference.c +++ b/ext/opcache/Optimizer/zend_inference.c @@ -2592,7 +2592,7 @@ static void zend_update_type_info(const zend_op_array *op_array, ssa_var_info[ssa_ops[i].op1_use].range.min == ZEND_LONG_MIN)) || (opline->opcode == ZEND_PRE_INC && (ssa_var_info[ssa_ops[i].op1_use].range.overflow || - ssa_var_info[ssa_ops[i].op1_use].range.min == ZEND_LONG_MAX))) { + ssa_var_info[ssa_ops[i].op1_use].range.max == ZEND_LONG_MAX))) { /* may overflow */ tmp |= MAY_BE_LONG | MAY_BE_DOUBLE; } else { @@ -2650,7 +2650,7 @@ static void zend_update_type_info(const zend_op_array *op_array, ssa_var_info[ssa_ops[i].op1_use].range.min == ZEND_LONG_MIN)) || (opline->opcode == ZEND_PRE_INC && (ssa_var_info[ssa_ops[i].op1_use].range.overflow || - ssa_var_info[ssa_ops[i].op1_use].range.min == ZEND_LONG_MAX))) { + ssa_var_info[ssa_ops[i].op1_use].range.max == ZEND_LONG_MAX))) { /* may overflow */ tmp |= MAY_BE_LONG | MAY_BE_DOUBLE; } else {

« previous php.cvs (#94355) next »