From c8dad9485ba56ea320848dc64b7fed8326cbe583 Mon Sep 17 00:00:00 2001 From: Louis Date: Fri, 2 Aug 2019 13:13:03 +0200 Subject: [PATCH] Remove type for size on Streamer constructor Resolves #12422 and #15117 On 32 bit systems integers can not be bigger than 2 147 483 647. This is problematic as it throws an error when downloading a folder bigger than 2Go because php will cast the size to float. Signed-off-by: Louis Chemineau --- lib/private/Streamer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/private/Streamer.php b/lib/private/Streamer.php index 176334b971df4..037f8037be3ef 100644 --- a/lib/private/Streamer.php +++ b/lib/private/Streamer.php @@ -53,7 +53,7 @@ class Streamer { * @param int $numberOfFiles The number of files (and directories) that will * be included in the streamed file */ - public function __construct(IRequest $request, int $size, int $numberOfFiles) { + public function __construct(IRequest $request, $size, int $numberOfFiles) { /** * zip32 constraints for a basic (without compression, volumes nor