com php-src: Cleanup: Zend/zend_compile.c
| From: | Nikita Popov | Date: | Fri, 18 Jul 2014 18:24:44 +0000 |
| Subject: | com php-src: Cleanup: Zend/zend_compile.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-80984@lists.php.net to get a copy of this message | ||
Commit: b9f62be2e6dda239fd7098e3a3b0e4d164049c03
Author: Nikita Popov <nikic@php.net> Fri, 18 Jul 2014 20:24:44 +0200
Parents: d0b66f3af3e86525861de4bfe10cfbfb33e583fc
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=b9f62be2e6dda239fd7098e3a3b0e4d164049c03
Log:
Cleanup
Changed paths:
M Zend/zend_compile.c
Diff:
diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c
index 4f53a53..6b5daf9 100644
--- a/Zend/zend_compile.c
+++ b/Zend/zend_compile.c
@@ -6046,7 +6046,7 @@ void zend_compile_foreach(zend_ast *ast TSRMLS_DC) {
if (key_ast) {
opline->result_type = IS_TMP_VAR;
- opline->result.opline_num = get_temporary_variable(CG(active_op_array));
+ opline->result.var = get_temporary_variable(CG(active_op_array));
GET_NODE(&key_node, opline->result);
}
@@ -6515,7 +6515,6 @@ void zend_compile_func_decl(znode *result, zend_ast *ast TSRMLS_DC) {
} else {
opline = get_next_op(CG(active_op_array) TSRMLS_CC);
opline->opcode = ZEND_DECLARE_FUNCTION;
- opline->extended_value = ZEND_DECLARE_FUNCTION;
opline->op2_type = IS_CONST;
LITERAL_STR(opline->op2, STR_COPY(lcname));
}