We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 318c514 + db49193 commit 246d709Copy full SHA for 246d709
src/Metadata/Cache/FileCache.php
@@ -42,6 +42,7 @@ public function putClassMetadataInCache(ClassMetadata $metadata)
42
43
$tmpFile = tempnam($this->dir, 'metadata-cache');
44
file_put_contents($tmpFile, '<?php return unserialize('.var_export(serialize($metadata), true).');');
45
+ chmod($tmpFile, 0666 & ~umask());
46
47
if (false === @rename($tmpFile, $path)) {
48
throw new \RuntimeException(sprintf('Could not write new cache file to %s.', $path));
0 commit comments