Changeset 432 in svn for branches/1.2


Ignore:
Timestamp:
2007-06-29T02:59:36Z (8 years ago)
Author:
Xuefer
Message:

fixed #109: fast inc/dec was trying to break ro protection

Location:
branches/1.2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/1.2/ChangeLog

    r423 r432  
    55== ChangeLog ==
    66 * #86: remove/edit variable in admin page
     7 * fixed #109: fast inc/dec was trying to break ro protection
    78 * fixed #101, #105: Fixed compatibility issue for apache 1.x
    89 * fixed #94: Garbage collector disabled when xcache.cacher set to off
  • branches/1.2/xcache.c

    r428 r432  
    20022002                stored_var = stored_xce->data.var;
    20032003                if (Z_TYPE_P(stored_var->value) == IS_LONG) {
     2004                    zval *zv;
    20042005                    stored_xce->ctime = XG(request_time);
    20052006                    stored_xce->ttl   = xce.ttl;
     
    20102011                    value += (inc == 1 ? count : - count);
    20112012                    RETVAL_LONG(value);
    2012                     Z_LVAL_P(stored_var->value) = value;
     2013
     2014                    zv = (zval *) xce.cache->shm->handlers->to_readwrite(xce.cache->shm, (char *) stored_var->value);
     2015                    Z_LVAL_P(zv) = value;
    20132016                    break; /* leave lock */
    20142017                }
Note: See TracChangeset for help on using the changeset viewer.