summaryrefslogtreecommitdiff
path: root/xcache
diff options
context:
space:
mode:
authorXuefer <xuefer@gmail.com>2013-07-12 03:13:34 +0000
committerXuefer <xuefer@gmail.com>2013-07-12 03:13:34 +0000
commit2575870deba64a47238db02bd4fe3eb95173fdf8 (patch)
treee3729fd7d983631a8264eb688e0fedc849933892 /xcache
parent699f10ffcbb77ce38c9cde63ef49e9cedbb9a4b1 (diff)
downloadxcache-2575870deba64a47238db02bd4fe3eb95173fdf8.tar.gz
xcache-2575870deba64a47238db02bd4fe3eb95173fdf8.zip
disassembler: fix UNSET_VAR for PHP 5.4+
git-svn-id: svn://svn.lighttpd.net/xcache/trunk@1295 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
Diffstat (limited to 'xcache')
-rw-r--r--xcache/xc_opcode_spec_def.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/xcache/xc_opcode_spec_def.h b/xcache/xc_opcode_spec_def.h
index ba9fcd0..2e1b955 100644
--- a/xcache/xc_opcode_spec_def.h
+++ b/xcache/xc_opcode_spec_def.h
@@ -79,7 +79,11 @@ static const xc_opcode_spec_t xc_opcode_spec[] = {
OPSPEC( UNUSED, STD, INCLUDE, VAR) /* 73 INCLUDE_OR_EVAL */
#ifdef ZEND_ENGINE_2_1
/* php 5.1 and up */
+# ifdef ZEND_ENGINE_2_4
+ OPSPEC( UNUSED, STD, STD, UNUSED) /* 74 UNSET_VAR */
+# else
OPSPEC( UNUSED, STD, FETCH, UNUSED) /* 74 UNSET_VAR */
+# endif
OPSPEC( STD, STD, STD, UNUSED) /* 75 UNSET_DIM */
OPSPEC( STD, STD, STD, UNUSED) /* 76 UNSET_OBJ */
OPSPEC( BIT, STD, OPLINE, VAR) /* 77 FE_RESET */