Skip to content

Commit 16feb01

Browse files
committed
Merge branch '5.4' into 6.4
* 5.4: fix syntax for PHP 7.2 [Security] Fix Danish translations [DomCrawler] Encode html entities only if nessecary [Serializer] Ignore when using #[Ignore] on a non-accessor [Filesystem] Strengthen the check of file permissions in `dumpFile` [Serializer] Fix XML scalar to object denormalization [HttpClient][EventSourceHttpClient] Fix consuming SSEs with \r\n separator
2 parents c882f88 + db9c7b1 commit 16feb01

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Filesystem.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -686,7 +686,7 @@ public function dumpFile(string $filename, $content)
686686
throw new IOException(sprintf('Failed to write file "%s": ', $filename).self::$lastError, 0, null, $filename);
687687
}
688688

689-
self::box('chmod', $tmpFile, file_exists($filename) ? fileperms($filename) : 0666 & ~umask());
689+
self::box('chmod', $tmpFile, @fileperms($filename) ?: 0666 & ~umask());
690690

691691
$this->rename($tmpFile, $filename, true);
692692
} finally {

0 commit comments

Comments
 (0)