Commit e5fa8138 by Alexander Makarov

#4471: `yii\caching\ApcCache` now returns array in case of APC is installed but…

#4471: `yii\caching\ApcCache` now returns array in case of APC is installed but not enabled in CLI mode
parent 1feb09b6
......@@ -4,6 +4,7 @@ Yii Framework 2 Change Log
2.0.1 under development
-----------------------
- Bug #4471: `yii\caching\ApcCache` now returns array in case of APC is installed but not enabled in CLI mode (samdark, cebe)
- Bug #5402: Debugger was not loading when there were closures in asset classes (samdark)
- Bug #5584: `yii\rbac\DbRbacManager` should not delete items when deleting a rule on a database not supporting cascade update (mdmunir)
- Bug #5601: Simple conditions in Query::where() and ActiveQuery::where() did not allow `yii\db\Expression` to be used as the value (cebe, stevekr)
......
......@@ -55,7 +55,11 @@ class ApcCache extends Cache
*/
protected function getValues($keys)
{
return apc_fetch($keys);
$values = apc_fetch($keys);
if ($values === false) {
$values = [];
}
return $values;
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment