From 73a64034b0b7af16b8baafcd45228ec3497f4c86 Mon Sep 17 00:00:00 2001 From: Marcin Kurczewski Date: Tue, 20 May 2014 22:30:12 +0200 Subject: [PATCH] Fixed stream handling for too big files --- src/Helpers/TransferHelper.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/Helpers/TransferHelper.php b/src/Helpers/TransferHelper.php index cd6353e0..2dc03cf5 100644 --- a/src/Helpers/TransferHelper.php +++ b/src/Helpers/TransferHelper.php @@ -41,8 +41,6 @@ class TransferHelper fflush($dstHandle); if ($maxBytes !== null and ftell($dstHandle) > $maxBytes) { - fclose($srcHandle); - fclose($dstHandle); throw new SimpleException( 'File is too big (maximum size: %s)', TextHelper::useBytesUnits($maxBytes));