From: Robin Appelman Date: Mon, 13 Apr 2015 12:13:21 +0000 (+0200) Subject: use our own stream copy instead X-Git-Tag: v8.1.0alpha1~8^2~3 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=dcfe014103368eba463234f5369c1edbfe7a1968;p=nextcloud-server.git use our own stream copy instead --- diff --git a/lib/private/connector/sabre/file.php b/lib/private/connector/sabre/file.php index 6483b5a61e6..1e19880857c 100644 --- a/lib/private/connector/sabre/file.php +++ b/lib/private/connector/sabre/file.php @@ -126,7 +126,7 @@ class File extends Node implements IFile { // because we have no clue about the cause we can only throw back a 500/Internal Server Error throw new Exception('Could not write file contents'); } - $count = stream_copy_to_stream($data, $target); + list($count, ) = \OC_Helper::streamCopy($data, $target); fclose($target); // if content length is sent by client: