Skip to content

Commit

Permalink
ZEND_UNSET_* don't have results
Browse files Browse the repository at this point in the history
  • Loading branch information
dstogov committed Jul 29, 2010
1 parent 6944a24 commit 6443445
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Zend/zend_compile.c
Original file line number Diff line number Diff line change
Expand Up @@ -5536,12 +5536,15 @@ void zend_do_unset(const znode *variable TSRMLS_DC) /* {{{ */
switch (last_op->opcode) {
case ZEND_FETCH_UNSET:
last_op->opcode = ZEND_UNSET_VAR;
SET_UNUSED(last_op->result);
break;
case ZEND_FETCH_DIM_UNSET:
last_op->opcode = ZEND_UNSET_DIM;
SET_UNUSED(last_op->result);
break;
case ZEND_FETCH_OBJ_UNSET:
last_op->opcode = ZEND_UNSET_OBJ;
SET_UNUSED(last_op->result);
break;

}
Expand Down

0 comments on commit 6443445

Please sign in to comment.