From: Nikita Popov Date: Sun, 17 Apr 2016 15:19:03 +0000 (+0200) Subject: Fully initialize DECLARE_CLASS/FUNCTION opcodes X-Git-Tag: php-7.1.0alpha1~299 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ea1f30057b50b24c83750b8d5410108b7ba65180;p=php Fully initialize DECLARE_CLASS/FUNCTION opcodes --- diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c index c6234f1088..fe9139b609 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);