From 6443445f2533ce98b401ce914054f490b5bdba7b Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Thu, 29 Jul 2010 09:46:59 +0000 Subject: [PATCH] ZEND_UNSET_* don't have results --- Zend/zend_compile.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c index ce19bd3cd88d9..f8efe8c43e407 100644 --- a/Zend/zend_compile.c +++ b/Zend/zend_compile.c @@ -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; }