[Filesystem] Changed the mode for a target file in copy() to be write only.
Stream wrappers like S3 do not support w+.
This commit is contained in:
parent
dc79423d04
commit
10e43b7be8
@ -50,7 +50,7 @@ class Filesystem
|
||||
if ($doCopy) {
|
||||
// https://bugs.php.net/bug.php?id=64634
|
||||
$source = fopen($originFile, 'r');
|
||||
$target = fopen($targetFile, 'w+');
|
||||
$target = fopen($targetFile, 'w');
|
||||
stream_copy_to_stream($source, $target);
|
||||
fclose($source);
|
||||
fclose($target);
|
||||
|
Reference in New Issue
Block a user