Additional checks for getMultiple method of ApcuDriver

This commit is contained in:
Timothy Warren 2017-01-17 11:52:51 -05:00
parent 3bff084b80
commit 2ea62648d0

View File

@ -73,7 +73,15 @@ class ApcuDriver extends AbstractDriver {
*/ */
public function getMultiple(array $keys = []): array public function getMultiple(array $keys = []): array
{ {
return \apcu_fetch($keys); $status = FALSE;
$output = apcu_fetch($keys, $status);
if ($status === FALSE || !is_array($output))
{
return [];
}
return $output;
} }
/** /**