Changeset 1f1be4a in git


Ignore:
Timestamp:
2007-06-29T03:09:47Z (12 years ago)
Author:
Xuefer <xuefer@…>
Branches:
3.0, 3.1, 3.2, master, trunk
Children:
513ae05
Parents:
bd44331
Message:

merged [431] from b1.2: fast inc/dec was trying to break ro protection

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

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • ChangeLog

    r4a41eef r1f1be4a  
    1010 * wrong http auth realm
    1111 * #86: remove/edit variable in admin page
     12 * fixed #109: fast inc/dec was trying to break ro protection
    1213 * fixed #101, #105: Fixed compatibility issue for apache 1.x
    1314 * fixed #94: Garbage collector disabled when xcache.cacher set to off
  • xcache.c

    ra29a43e r1f1be4a  
    21862186                stored_var = stored_xce->data.var;
    21872187                if (Z_TYPE_P(stored_var->value) == IS_LONG) {
     2188                    zval *zv;
    21882189                    stored_xce->ctime = XG(request_time);
    21892190                    stored_xce->ttl   = xce.ttl;
     
    21922193                    value += (inc == 1 ? count : - count);
    21932194                    RETVAL_LONG(value);
    2194                     Z_LVAL_P(stored_var->value) = value;
     2195
     2196                    zv = (zval *) xce.cache->shm->handlers->to_readwrite(xce.cache->shm, (char *) stored_var->value);
     2197                    Z_LVAL_P(zv) = value;
    21952198                    break; /* leave lock */
    21962199                }
Note: See TracChangeset for help on using the changeset viewer.