Please help Couchbase
I’m having a problem with this warning…
My code was :
$val = Yii::app()->couchbase->get(static::getPrefix() . $key, null, &$casToken)
After updating PHP to 5.4 and couchbase lib to the latest version (through pecl), I got an error saying :
Fatal error: Call-time pass-by-reference has been removed in /var/www/indri/yii/ap/protected/models/CouchbaseModel.php on line 155Removed the reference from the above code (&$casToken) but now I’m getting another warning :
Parameter 3 to Couchbase::get() expected to be a reference, value given
Checked the API docs and saw there’s no reference in the Couchbase::get definition…
What am I doing wrong ??