Changeset 9c6952a in git


Ignore:
Timestamp:
2007-06-29T02:59:36Z (12 years ago)
Author:
Xuefer <xuefer@…>
Branches:
1.2, 1.3
Children:
da5e104
Parents:
7957e6a
Message:

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

git-svn-id: svn://svn.lighttpd.net/xcache/branches/1.2@432 c26eb9a1-5813-0410-bd6c-c2e55f420ca7

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • ChangeLog

    r4d25462 r9c6952a  
    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
  • xcache.c

    r6c2fb41 r9c6952a  
    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.