Changeset 1321 in svn for trunk/processor/head.m4


Ignore:
Timestamp:
2013-07-15T19:37:57+02:00 (23 months ago)
Author:
Xuefer
Message:

add back PHP_4 code for disassembler

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/processor/head.m4

    r1281 r1321  
    248248    }
    249249    for (i = 0; i < php->classinfo_cnt; i ++) {
    250         ceptr = php->classinfos[i].class_entry;
    251         if (ceptr == ce) {
     250        ceptr = CestToCePtr(php->classinfos[i].cest);
     251        if (ZCEP_REFCOUNT_PTR(ceptr) == ZCEP_REFCOUNT_PTR(ce)) {
    252252            processor->cache_ce = ceptr;
    253253            processor->cache_class_index = i;
     
    261261/* }}} */
    262262/* {{{ xc_get_class */
     263#ifdef ZEND_ENGINE_2
    263264static zend_class_entry *xc_get_class(xc_processor_t *processor, zend_ulong class_num) {
    264265    /* must be parent or currrent class */
    265266    assert(class_num <= processor->active_class_index + 1);
    266     return processor->php_dst->classinfos[class_num - 1].class_entry;
    267 }
     267    return CestToCePtr(processor->php_dst->classinfos[class_num - 1].cest);
     268}
     269#endif
    268270define(`xc_get_class', `xc_get_classNOTDEFINED')
    269271/* }}} */
     272#ifdef ZEND_ENGINE_2
    270273/* fix method on store */
    271274static void xc_fix_method(xc_processor_t *processor, zend_op_array *dst TSRMLS_DC) /* {{{ */
     
    342345}
    343346/* }}} */
     347#endif
    344348/* {{{ call op_array ctor handler */
    345349extern zend_bool xc_have_op_array_ctor;
Note: See TracChangeset for help on using the changeset viewer.