Changeset 1381 in svn for trunk/processor/processor.m4


Ignore:
Timestamp:
2013-09-22T15:04:51Z (2 years ago)
Author:
Xuefer
Message:

possible fix for #324

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/processor/processor.m4

    r1380 r1381  
    735735        /* really fast shallow copy */
    736736        memcpy(dst, src, sizeof(src[0]));
    737         DST(`refcount[0]') = 1000;
     737        DST(`refcount') = &XG(op_array_dummy_refcount_holder);
     738        DST(`refcount[0]') = -1;
    738739#ifdef ZEND_ACC_ALIAS
    739740        if ((processor->active_class_entry_src && (processor->active_class_entry_src->ce_flags & ZEND_ACC_TRAIT))) {
     
    878879
    879880    STRUCT_P(zend_uint, refcount)
    880     UNFIXPOINTER(zend_uint, refcount)
    881     IFSTORE(`DST(`refcount[0]') = 1;')
     881    IFSTORE(`
     882        UNFIXPOINTER(zend_uint, refcount)
     883        DST(`refcount[0]') = 1;
     884        FIXPOINTER(zend_uint, refcount)
     885    ')
    882886
    883887#ifdef ZEND_ENGINE_2_4
Note: See TracChangeset for help on using the changeset viewer.