Use proper result type

This commit is contained in:
Dmitry Stogov 2007-12-27 13:52:05 +00:00
parent 964b8bb30d
commit ba8dcae76d

View File

@ -1444,6 +1444,7 @@ void zend_do_begin_method_call(znode *left_bracket TSRMLS_DC)
if (last_op->opcode == ZEND_FETCH_OBJ_R) { if (last_op->opcode == ZEND_FETCH_OBJ_R) {
last_op->opcode = ZEND_INIT_METHOD_CALL; last_op->opcode = ZEND_INIT_METHOD_CALL;
SET_UNUSED(last_op->result);
Z_LVAL(left_bracket->u.constant) = ZEND_INIT_FCALL_BY_NAME; Z_LVAL(left_bracket->u.constant) = ZEND_INIT_FCALL_BY_NAME;
} else { } else {
zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC); 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; CG(active_class_entry) = new_class_entry;
opline->result.u.var = get_temporary_variable(CG(active_op_array)); 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; CG(implementing_class) = opline->result;
if (CG(doc_comment)) { if (CG(doc_comment)) {