Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 16feb01

Browse filesBrowse 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
Copy full SHA for 16feb01

File tree

1 file changed

+1
-1
lines changed
Filter options

1 file changed

+1
-1
lines changed

‎Filesystem.php

Copy file name to clipboardExpand all lines: Filesystem.php
+1-1Lines changed: 1 addition & 1 deletion
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.