com php-src: Fully initialize DECLARE_CLASS/FUNCTION opcode s: Zend/zend_compile.c
| From: | Nikita Popov | Date: | Mon, 18 Apr 2016 20:46:45 +0000 |
| Subject: | com php-src: Fully initialize DECLARE_CLASS/FUNCTION opcode s: Zend/zend_compile.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-91779@lists.php.net to get a copy of this message | ||
Commit: ea1f30057b50b24c83750b8d5410108b7ba65180
Author: Nikita Popov <nikic@php.net> Sun, 17 Apr 2016 17:19:03 +0200
Parents: d79288c6bb4186a7f962445bb03bfbaa12b1ce4d
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=ea1f30057b50b24c83750b8d5410108b7ba65180
Log:
Fully initialize DECLARE_CLASS/FUNCTION opcodes
Changed paths:
M Zend/zend_compile.c
Diff:
diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c
index c6234f1..fe9139b 100644
--- a/Zend/zend_compile.c
+++ b/Zend/zend_compile.c
@@ -5308,6 +5308,7 @@ static void zend_begin_func_decl(znode *result, zend_op_array *op_array,
zend_as
LITERAL_STR(opline->op1, zend_string_copy(lcname));
/* RTD key is placed after lcname literal in op1 */
zend_add_literal_string(CG(active_op_array), &key);
+ SET_UNUSED(opline->op2);
}
zend_string_release(lcname);
@@ -5758,6 +5759,7 @@ void zend_compile_class_decl(zend_ast *ast) /* {{{ */
SET_NODE(opline->op2, &extends_node);
} else {
opline->opcode = ZEND_DECLARE_CLASS;
+ SET_UNUSED(opline->op2);
}
key = zend_build_runtime_definition_key(lcname, decl->lex_pos);