Details
-
Bug
-
Resolution: Fixed
-
Major
-
2.3.0
-
None
-
None
Description
On 2.3.0, the following code silently writes both values into the first bucket
<?php
|
$cluster = new \Couchbase\Cluster('couchbase://192.168.1.194'); |
$authenticator = new \Couchbase\ClassicAuthenticator(); |
$authenticator->bucket('protected1', 's3cret'); |
$authenticator->bucket('protected2', 'password'); |
$cluster->authenticate($authenticator); |
|
$bucket1 = $cluster->openBucket('protected1'); |
var_dump($bucket1->upsert('foo', 'bar')); |
|
$bucket2 = $cluster->openBucket('protected2'); |
var_dump($bucket2->upsert('foo', 'baz')); |