From 93499bfd8a91676a3f41ba444fa522384104ebad Mon Sep 17 00:00:00 2001 From: Xinchen Hui Date: Thu, 17 Mar 2016 07:55:25 -0700 Subject: [PATCH] Fixed test & ZEND_BOOL should result TMP_VAR --- Zend/zend_compile.c | 2 +- ext/opcache/tests/bug71843.phpt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c index 1d7cd36381..7c72cedc58 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 7fcf32c032..32af61bf74 100644 --- a/ext/opcache/tests/bug71843.phpt +++ b/ext/opcache/tests/bug71843.phpt @@ -7,7 +7,7 @@ opcache.optimization_level=0xFFFFBFFF --SKIPIF-- --FILE-- - -- 2.50.1