com php-src: Update operand types for coalesce operator: Zend/zend_compile.c
| From: | Nikita Popov | Date: | Sun, 28 Sep 2014 10:20:04 +0000 |
| Subject: | com php-src: Update operand types for coalesce operator: Zend/zend_compile.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-81991@lists.php.net to get a copy of this message | ||
Commit: 877eb02fd6cb56c5017a7770de1bdfaf97932b2f
Author: Nikita Popov <nikic@php.net> Sun, 28 Sep 2014 12:20:04 +0200
Parents: 2d069f640e6cccfa3ba8b1e4f375ade20fb33f64
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=877eb02fd6cb56c5017a7770de1bdfaf97932b2f
Log:
Update operand types for coalesce operator
Changed paths:
M Zend/zend_compile.c
Diff:
diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c
index 4e5ac0b..ee256e4 100644
--- a/Zend/zend_compile.c
+++ b/Zend/zend_compile.c
@@ -5336,11 +5336,11 @@ void zend_compile_coalesce(znode *result, zend_ast *ast TSRMLS_DC) /* {{{ */
zend_compile_var(&expr_node, expr_ast, BP_VAR_IS TSRMLS_CC);
opnum = get_next_op_number(CG(active_op_array));
- zend_emit_op(result, ZEND_COALESCE, &expr_node, NULL TSRMLS_CC);
+ zend_emit_op_tmp(result, ZEND_COALESCE, &expr_node, NULL TSRMLS_CC);
zend_compile_expr(&default_node, default_ast TSRMLS_CC);
- opline = zend_emit_op(NULL, ZEND_QM_ASSIGN, &default_node, NULL TSRMLS_CC);
+ opline = zend_emit_op_tmp(NULL, ZEND_QM_ASSIGN, &default_node, NULL TSRMLS_CC);
SET_NODE(opline->result, result);
opline = &CG(active_op_array)->opcodes[opnum];