|
@@ -427,7 +427,10 @@ abstract class Kernel implements HttpKernelInterface, \Serializable
|
|
|
die(sprintf('Failed to write cache file "%s" (cache corrupted).', $tmpFile));
|
|
|
}
|
|
|
|
|
|
- @rename($tmpFile, $file);
|
|
|
+ if (!@rename($tmpFile, $file)) {
|
|
|
+ throw new \RuntimeException(sprintf('Failed to write cache file "%s".', $file));
|
|
|
+ }
|
|
|
+
|
|
|
chmod($file, 0644);
|
|
|
}
|
|
|
|