On 12/7/10 9:59 PM, pravesh suyal wrote: rm -rf pravesh
http://groups.google.com/support/bin/answer.py?hl=en&answer=46608 > > > ** > *pravesh suyal* > > > --- On *Tue, 12/7/10, Jakub Łopuszański /<[email protected]>/* > wrote: > > > From: Jakub Łopuszański <[email protected]> > Subject: Problems with increment/decrement with large deltas in pecl > memcache > To: [email protected] > Date: Tuesday, December 7, 2010, 1:07 AM > > memcache.c line 1749 LINK : > http://svn.php.net/viewvc/pecl/memcache/trunk/memcache.c?revision=296899&view=markup > > <http://svn.php.net/viewvc/pecl/memcache/trunk/memcache.c?revision=296899&view=markup> > > > 1749 > > > > command_len=spprintf(&command,0,"incr %s %d",key,value); > > > > It should not be %d, as it spoils the fun of using 64-bit integers. > > Consider this example: > > <?php > require('autoload.php'); > $bazylion = 10000000000; > var_dump($bazylion); > $c = new CacheKey('default','x'); > $c->set(9); > var_dump($c->get()); > $c->increment($bazylion); > var_dump($c->get()); > $c->decrement($bazylion); > var_dump($c->get()); > ?> > > > int(10000000000) > string(1) "9" > string(10) "1410065417" > string(10) "9 " > > This is quite annoying. > >
