Changeset 718 for trunk/opcode_spec.c


Ignore:
Timestamp:
2011-04-09T12:18:29+02:00 (4 years ago)
Author:
moo
Message:

fix assertion failure for PHP4

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/opcode_spec.c

    r393 r718  
    2020const xc_opcode_spec_t *xc_get_opcode_spec(zend_uchar opcode)
    2121{
     22#ifndef NDEBUG
     23    if (xc_get_opcode_count() != xc_get_opcode_spec_count()) {
     24        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());
     25    }
     26#endif
    2227    assert(xc_get_opcode_count() == xc_get_opcode_spec_count());
    2328    assert(opcode < xc_get_opcode_spec_count());
Note: See TracChangeset for help on using the changeset viewer.