Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increment and Decrement Implementation Not Working Correctly #3

Open
cbeech opened this issue Dec 13, 2012 · 1 comment
Open

Increment and Decrement Implementation Not Working Correctly #3

cbeech opened this issue Dec 13, 2012 · 1 comment

Comments

@cbeech
Copy link

cbeech commented Dec 13, 2012

Increment and decrement don't appear to be functioning correctly. I did the following

$m->set('testkey',0);
var_dump($m->get('testkey'));
var_dump($m->increment('testkey'));
var_dump($m->get('testkey'));

which output

int(0)
bool(true)
int(2147483647)

2147483647 is 0x7FFFFFFF

I was expecting the value returned to be 1.

@ronnywang
Copy link
Owner

my output is
int(0)
bool(true)
int(1)

on PHP 5.4.9 & Memcached 1.4.14

can you give me your PHP or Memcached version ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants