Changeset 930 in svn for trunk/utils.c


Ignore:
Timestamp:
2012-06-26T13:53:44Z (3 years ago)
Author:
Xuefer
Message:

fix disassembler for 2.4 literal

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/utils.c

    r917 r930  
    240240    end = opline + op_array->last;
    241241    while (opline < end) {
    242 #ifndef ZEND_ENGINE_2_4
     242#ifdef ZEND_ENGINE_2_4
     243        if (opline->op1_type == IS_CONST) {
     244            opline->op1.literal = op_array->literals + opline->op1.constant;
     245        }
     246        if (opline->op2_type == IS_CONST) {
     247            opline->op2.literal = op_array->literals + opline->op2.constant;
     248        }
     249#else
    243250        if (Z_OP_TYPE(opline->op1) == IS_CONST) {
    244251            Z_SET_ISREF(Z_OP_CONSTANT(opline->op1));
Note: See TracChangeset for help on using the changeset viewer.