Skip to content

Increment and Decrement Implementation Not Working Correctly #3

@cbeech

Description

@cbeech

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions