1
0
Fork 0

fix assertion failure for PHP4

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@718 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
3.0
Xuefer 12 years ago
parent 27fd7264a0
commit b7195c1939

@ -19,6 +19,11 @@ zend_uchar xc_get_opcode_spec_count()
const xc_opcode_spec_t *xc_get_opcode_spec(zend_uchar opcode)
{
#ifndef NDEBUG
if (xc_get_opcode_count() != xc_get_opcode_spec_count()) {
fprintf(stderr, "count mismatch: xc_get_opcode_count=%d, xc_get_opcode_spec_count=%d\n", xc_get_opcode_count(), xc_get_opcode_spec_count());
}
#endif
assert(xc_get_opcode_count() == xc_get_opcode_spec_count());
assert(opcode < xc_get_opcode_spec_count());
return &xc_opcode_spec[opcode];

@ -232,5 +232,12 @@ static const xc_opcode_spec_t xc_opcode_spec[] = {
OPSPEC( UNUSED, UNUSED, UNUSED, UNUSED) /* 152 UNDEF */
OPSPEC( UNUSED, UNUSED, UNUSED, UNUSED) /* 153 UNDEF */
# endif
#else
OPSPEC( UNUSED, UNUSED, UNUSED, UNUSED) /* 107 UNDEF */
OPSPEC( UNUSED, UNUSED, UNUSED, UNUSED) /* 108 UNDEF */
OPSPEC( UNUSED, UNUSED, UNUSED, UNUSED) /* 109 UNDEF */
OPSPEC( FCALL, STD, OPLINE, VAR) /* 61 DO_FCALL_BY_FUNC */
OPSPEC(INIT_FCALL, STD, STD, UNUSED) /* 111 INIT_FCALL_BY_FUNC */
OPSPEC( UNUSED, UNUSED, UNUSED, UNUSED) /* 112 UNDEF */
#endif
};

Loading…
Cancel
Save