Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.0.1
-
Fix Version/s: 1.0.4
-
Component/s: None
-
Security Level: Public
-
Labels:None
Description
Bug reporter is noticing some strange behavior from the getMulti function: keys which exist and are visible when print_r'ing the response give an undefined index error when reporter tries to access them.
Full details are in http://www.couchbase.com/forums/thread/php-undefined-index-existing-keys-getmulti-result
Full details are in http://www.couchbase.com/forums/thread/php-undefined-index-existing-keys-getmulti-result
$get = $couchbase->getMulti($keys);
foreach($get as $k => $v)
{
$hack_array[$k] = $v;
}
$get = $hack_array;
It's interesting to note that you can iterate through the array with a foreach and setting it into a new array lets you access the values.