allen8807 / memcached

Automatically exported from code.google.com/p/memcached
0 stars 0 forks source link

get fails after increment if key was initially set boolean #204

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
I`ve noticed some strange issue with php - memcached usage.
1. $memcache->set('test', true);
2. $memcache->increment('test'); //returns 2
3. $memcache->get('test'); //returns false

So futher increments return supposed values, but get always gives false. Just 
like ::set was done with compressed. 
But if I do initial set with some string, at also goes well, the error somes 
only with php boolean type.

Testing on memcached 1.4.5 server with php (memcache 3.0.5 ext). On older 
versions problem didn't happen.

Original issue reported on code.google.com by p.yu...@gmail.com on 19 Apr 2011 at 1:35

GoogleCodeExporter commented 9 years ago
Are you saying that older versions of memcached were fine, or older versions of 
php's pecl/memcache were okay?

If it's a bug in the memcache library, please file a bug with them.

Original comment by dorma...@rydia.net on 19 Apr 2011 at 2:39

GoogleCodeExporter commented 9 years ago
Sorry, it`s not a Memcached bug. I`ve tested it from different php versions and 
found it`s a php library bug.

Original comment by p.yu...@gmail.com on 19 Apr 2011 at 4:00

GoogleCodeExporter commented 9 years ago
closing, as reporter said it's not an issue with the server

Original comment by ingen...@gmail.com on 19 Apr 2011 at 4:13