From dcfe014103368eba463234f5369c1edbfe7a1968 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Mon, 13 Apr 2015 14:13:21 +0200 Subject: [PATCH] use our own stream copy instead --- lib/private/connector/sabre/file.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- 2.39.5