com php-src: Fixed test & ZEND_BOOL should result TMP _VAR: Zend/zend_compile.c ext/opcache/tests/bug7 1843.phpt
| From: | Xinchen Hui | Date: | Thu, 17 Mar 2016 14:55:25 +0000 |
| Subject: | com php-src: Fixed test & ZEND_BOOL should result TMP _VAR: Zend/zend_compile.c ext/opcache/tests/bug7 1843.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-91403@lists.php.net to get a copy of this message | ||
Commit: 93499bfd8a91676a3f41ba444fa522384104ebad
Author: Xinchen Hui <laruence@gmail.com> Thu, 17 Mar 2016 07:55:25 -0700
Parents: 345ecd9822820a54134bd53a6e449e1f22612e19
Branches: PHP-7.0
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=93499bfd8a91676a3f41ba444fa522384104ebad
Log:
Fixed test & ZEND_BOOL should result TMP_VAR
Changed paths:
M Zend/zend_compile.c
M ext/opcache/tests/bug71843.phpt
Diff:
diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c
index 1d7cd36..7c72ced 100644
--- a/Zend/zend_compile.c
+++ b/Zend/zend_compile.c
@@ -6067,7 +6067,7 @@ void zend_compile_short_circuiting(znode *result, zend_ast *ast) /* {{{ */
zval_ptr_dtor(&right_node.u.constant);
} else {
- zend_emit_op(result, ZEND_BOOL, &right_node, NULL);
+ zend_emit_op_tmp(result, ZEND_BOOL, &right_node, NULL);
}
}
diff --git a/ext/opcache/tests/bug71843.phpt b/ext/opcache/tests/bug71843.phpt
index 7fcf32c..32af61b 100644
--- a/ext/opcache/tests/bug71843.phpt
+++ b/ext/opcache/tests/bug71843.phpt
@@ -7,7 +7,7 @@ opcache.optimization_level=0xFFFFBFFF
--SKIPIF--
<?php if (!extension_loaded('Zend OPcache')) die("skip"); ?>
--FILE--
-<?
+<?php
0 & ~E & ~R;
6 && ~See
?>