com php-src: ZEND_SPACESHIP supports: ext/opcache/Optim izer/pass1_5.c
| From: | Xinchen Hui | Date: | Wed, 25 Nov 2015 12:20:05 +0000 |
| Subject: | com php-src: ZEND_SPACESHIP supports: ext/opcache/Optim izer/pass1_5.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-90026@lists.php.net to get a copy of this message | ||
Commit: 9376e8213c8c88aa4d486807848b11e8e19e57a1
Author: Xinchen Hui <laruence@gmail.com> Wed, 25 Nov 2015 20:20:05 +0800
Parents: 1b6873b4e61899a091504f838552940ec28238db
Branches: PHP-7.0 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=9376e8213c8c88aa4d486807848b11e8e19e57a1
Log:
ZEND_SPACESHIP supports
Changed paths:
M ext/opcache/Optimizer/pass1_5.c
Diff:
diff --git a/ext/opcache/Optimizer/pass1_5.c b/ext/opcache/Optimizer/pass1_5.c
index 766eb2c..5ea10a8 100644
--- a/ext/opcache/Optimizer/pass1_5.c
+++ b/ext/opcache/Optimizer/pass1_5.c
@@ -66,6 +66,7 @@ void zend_optimizer_pass1(zend_op_array *op_array, zend_optimizer_ctx *ctx)
case ZEND_BW_AND:
case ZEND_BW_XOR:
case ZEND_BOOL_XOR:
+ case ZEND_SPACESHIP:
if (ZEND_OP1_TYPE(opline) == IS_CONST &&
ZEND_OP2_TYPE(opline) == IS_CONST) {
/* binary operation with constant operands */