Changeset 2492dcb in git


Ignore:
Timestamp:
2013-09-22T15:04:51Z (6 years ago)
Author:
Xuefer <xuefer@…>
Branches:
3.1, 3.2, master, trunk
Children:
c383d75
Parents:
9e88b02
Message:

possible fix for #324

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

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • processor/processor.m4

    r9e88b02 r2492dcb  
    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
  • xcache_globals.h

    r7fe46fb r2492dcb  
    4444
    4545    void *sandbox;
     46    zend_uint op_array_dummy_refcount_holder;
    4647ZEND_END_MODULE_GLOBALS(xcache)
    4748
Note: See TracChangeset for help on using the changeset viewer.