Details
-
Bug
-
Resolution: Fixed
-
Major
-
1.0
-
None
-
Security Level: Public
-
None
Description
According to http://code.google.com/p/memcached/wiki/BinaryProtocolRevamped#Increment,_Decrement an arithmetic operation on a non-existent key cause flags to be reset. The php extension requires flags to determine the php type of the stored value. that info gets lost.
This demonstrates the issue:
couchbase_increment($handle, "key", $offset = 1, $create = true, $initial_value = 2);
couchbase_get($handle, "key");
this currently results in
PHP Warning: couchbase_get(): unknown payload type in %s
PHP Warning: couchbase_get(): Faild to get a value from server: Generic error in %s
the expected result is
that couchbase_get() returns 3.