Details
Description
See http://www.couchbase.com/forums/thread/php-ext-incorrect-data-returned
I'm setting various integers to different keys. When I subsequently get them, the couchbase.so result "mixes" the values. I can verify via the command line that the values are set correctly, but they're not the same as what couchbase.so returns to me.
PHP Example:
$cb->set("userid", 642349292);
$cb->set("productid", 5);
$user_id = $cb->get("userid");
echo $user_id."\n";
$pid = $cb->get("productid");
echo $pid."\n";
This outputs:
642349292
542349292
On the command line however:
get userid
VALUE userid 1 9
642349292
END
get productid
VALUE productid 1 1
5
END
I can "work around" this (and the other issue), by setting integers as strings, but something is clearly the matter with couchbase.so.
If I set the integers as strings, like this:
$cb->set("userid", "642349292");
$cb->set("productid", "5");
$user_id = $cb->get("userid");
echo $user_id."\n";
$pid = $cb->get("productid");
echo $pid."\n";
the subsequent output is correct:
642349292
5
Attachments
Issue Links
- is duplicated by
-
PCBC-55 Couchbase.so - prepend/append integer subsequently only returns last value on "get"
- Resolved