From ba8dcae76da8f5536c03f82e056cdd6cb803d059 Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Thu, 27 Dec 2007 13:52:05 +0000 Subject: [PATCH] Use proper result type --- Zend/zend_compile.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c index 334816d1a76..c3a0e5de1bc 100644 --- a/Zend/zend_compile.c +++ b/Zend/zend_compile.c @@ -1444,6 +1444,7 @@ void zend_do_begin_method_call(znode *left_bracket TSRMLS_DC) if (last_op->opcode == ZEND_FETCH_OBJ_R) { last_op->opcode = ZEND_INIT_METHOD_CALL; + SET_UNUSED(last_op->result); Z_LVAL(left_bracket->u.constant) = ZEND_INIT_FCALL_BY_NAME; } else { zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC); @@ -3158,7 +3159,7 @@ void zend_do_begin_class_declaration(znode *class_token, znode *class_name, znod CG(active_class_entry) = new_class_entry; opline->result.u.var = get_temporary_variable(CG(active_op_array)); - opline->result.op_type = IS_CONST; + opline->result.op_type = IS_VAR; CG(implementing_class) = opline->result; if (CG(doc_comment)) {