Details
-
Bug
-
Resolution: Fixed
-
Major
-
None
-
None
-
None
Description
The library should only try to use username and password overrides when they are not NULL.
The following code sample generates segfault on NULL dereference
<?php
|
|
$authenticator = new \Couchbase\ClassicAuthenticator();
|
$authenticator->cluster('Administrator', 'password');
|
|
$cluster = new \Couchbase\Cluster("http://127.0.0.1:8091");
|
$cluster->authenticate($authenticator);
|
$cluster->manager()->createBucket('my_bucket');
|