Details
-
Bug
-
Resolution: Fixed
-
Critical
-
None
-
2.0.7
-
Security Level: Public
-
*Location*: http://docs.couchbase.com/developer/php-2.0/hello-couchbase.html
*User-Agent*: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.130 Safari/537.36
*Referrer*: http://docs.couchbase.com/developer/php-2.0/getting-started.html
*Screen Resolution*: 2560 x 1440
*Location*: http://docs.couchbase.com/developer/php-2.0/hello-couchbase.html *User-Agent*: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.130 Safari/537.36 *Referrer*: http://docs.couchbase.com/developer/php-2.0/getting-started.html *Screen Resolution*: 2560 x 1440
Description
When I execute the example,
$result is:
object(CouchbaseMetaDoc)#14 (4) {
["error"]=>
NULL
["value"]=>
string(1256) "
"
["flags"]=>
int(67108864)
["cas"]=>
resource(35) of type (CouchbaseCAS)
}
You see that "value" is a string and therefore not directly accessible via getter methods (echo $doc->name . ', ABV: ' . $doc->abv . "\n"
I have to do a $doc = json_decode($result->value); to get the sample running
Reporter: Sebastian Schwaiger
E-mail: ses@principiamentis.com