From 865a6af1534c405b4d0146852b7f09f379812f34 Mon Sep 17 00:00:00 2001 From: Arthur de Moulins Date: Wed, 8 Mar 2017 13:16:26 +0100 Subject: [PATCH] cached files rely on umask --- src/Symfony/Component/Cache/Adapter/PhpArrayAdapter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Component/Cache/Adapter/PhpArrayAdapter.php b/src/Symfony/Component/Cache/Adapter/PhpArrayAdapter.php index c272ad0a4ae5f..4b1552e1d16c9 100644 --- a/src/Symfony/Component/Cache/Adapter/PhpArrayAdapter.php +++ b/src/Symfony/Component/Cache/Adapter/PhpArrayAdapter.php @@ -150,7 +150,7 @@ public function warmUp(array $values) $tmpFile = uniqid($this->file, true); file_put_contents($tmpFile, $dump); - @chmod($tmpFile, 0666); + @chmod($tmpFile, 0666 & ~umask()); unset($serialized, $unserialized, $value, $dump); @rename($tmpFile, $this->file);