[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:
Jakub Zalas 2013-12-16 11:23:38 +00:00
parent dc79423d04
commit 10e43b7be8

View File

@ -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);