Changeset 9d48a49 in git for utils.c


Ignore:
Timestamp:
2012-06-26T13:53:44Z (8 years ago)
Author:
Xuefer <xuefer@…>
Branches:
3.0, 3.1, 3.2, master, trunk
Children:
8de4537
Parents:
072acc9
Message:

fix disassembler for 2.4 literal

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@930 c26eb9a1-5813-0410-bd6c-c2e55f420ca7

File:
1 edited

Legend:

Unmodified
Added
Removed
  • utils.c

    r282834a r9d48a49  
    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.