PHP Ext: Incorrect data returned
It seems that couchbase.so is really not ready for prime time. I'm thinking of switching to the PHP SDK instead. In addition to the issue that I reported earlier, I now have another funky one dealing with integers set to keys.
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.
$cb->set("userid", 642349292); $cb->set("productid", 5); $user_id = $cb->get("userid"); echo $user_id."\n"; $pid = $cb->get("productid"); echo $pid."\n";
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:
BTW - this is on Mac OS X...
Can someone from Couchbase please comment on this, because if I have to verify data integrity on every operation, this is becoming pretty useless...