We are trying to use the couchbase clients for PHP and .NET. We are getting an error when we set a value with C# then read it with PHP. We don't have any issues going the other direction or reading the values when telneting to the server. Does anyone know why we are getting an error?
The php 'get' call causes the following error:
Warning: Couchbase::get() [couchbase.get]: could not decompress value (bad content) in D:\inetpub\Webadvisor\its\test\couchbase.php on line 5
The error comes from couchbase.c in the php-ext-couchbase repository found on github. https://github.com/couchbase/php-ext-couchbase/blob/master/convert.c#L213
C# Code: (this works fine)
Couchbase.Configuration.CouchbaseClientConfiguration config = new Couchbase.Configuration.CouchbaseClientConfiguration();
config.Urls.Add(new Uri("http://127.0.0.1:8091/pools"));
CouchbaseClient client = new CouchbaseClient(config);
client.Store(StoreMode.Set, "foo", "bar");
client.Dispose();
PHP Code:
$cb = new Couchbase("127.0.0.1", "", "", "default");
var_dump($cb->get("foo"));