diff --git a/src/Symfony/Component/HttpKernel/HttpCache/Store.php b/src/Symfony/Component/HttpKernel/HttpCache/Store.php index 9533cf637c509..c831ba2ac3ffb 100644 --- a/src/Symfony/Component/HttpKernel/HttpCache/Store.php +++ b/src/Symfony/Component/HttpKernel/HttpCache/Store.php @@ -356,7 +356,7 @@ private function load($key) { $path = $this->getPath($key); - return file_exists($path) ? file_get_contents($path) : null; + return file_exists($path) && false !== ($contents = file_get_contents($path)) ? $contents : null; } /**