]> granicus.if.org Git - php/commitdiff
Use proper result type
authorDmitry Stogov <dmitry@php.net>
Thu, 27 Dec 2007 13:52:29 +0000 (13:52 +0000)
committerDmitry Stogov <dmitry@php.net>
Thu, 27 Dec 2007 13:52:29 +0000 (13:52 +0000)
Zend/zend_compile.c

index e0802c2ae201e68428ec5ef07fabb2f8ecd5d876..22b546b30cbb26032fff41da450f8c61f77b9e2e 100644 (file)
@@ -1556,6 +1556,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);
@@ -3392,7 +3393,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).v) {