diff --git a/src/Symfony/Component/HttpKernel/Cache/Store.php b/src/Symfony/Component/HttpKernel/Cache/Store.php index 1b2cefab9e9fe..38e48b551f226 100644 --- a/src/Symfony/Component/HttpKernel/Cache/Store.php +++ b/src/Symfony/Component/HttpKernel/Cache/Store.php @@ -151,7 +151,7 @@ public function write(Request $request, Response $response) $digest = 'en'.sha1($response->getContent()); if (false === $this->save($digest, $response->getContent())) { - throw new \RuntimeException(sprintf('Unable to store the entity (%s).', $e->getMessage())); + throw new \RuntimeException(sprintf('Unable to store the entity.')); } $response->headers->set('X-Content-Digest', $digest); @@ -180,7 +180,7 @@ public function write(Request $request, Response $response) array_unshift($entries, array($storedEnv, $headers)); if (false === $this->save($key, serialize($entries))) { - throw new \RuntimeException(sprintf('Unable to store the metadata (%s).', $e->getMessage())); + throw new \RuntimeException(sprintf('Unable to store the metadata.')); } return $key; @@ -315,8 +315,8 @@ public function load($key) public function save($key, $data) { $path = $this->getPath($key); - if (!is_dir(dirname($path))) { - mkdir(dirname($path), 0777, true); + if (!is_dir(dirname($path)) && false === @mkdir(dirname($path), 0777, true)) { + return false; } $tmpFile = tempnam(dirname($path), basename($path)); pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy