From dfbd85d7231d3440b2831c61a83ba8cb1512523e Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Thu, 17 Mar 2016 13:54:26 +0100 Subject: update icewind/streams to 0.4.0 and icewind/smb to 1.0.7 in files_external --- apps/files_external/3rdparty/icewind/smb/src/NativeStream.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'apps/files_external/3rdparty/icewind/smb/src') diff --git a/apps/files_external/3rdparty/icewind/smb/src/NativeStream.php b/apps/files_external/3rdparty/icewind/smb/src/NativeStream.php index 07bd2f1e797..8ffa8836924 100644 --- a/apps/files_external/3rdparty/icewind/smb/src/NativeStream.php +++ b/apps/files_external/3rdparty/icewind/smb/src/NativeStream.php @@ -7,6 +7,7 @@ namespace Icewind\SMB; +use Icewind\SMB\Exception\Exception; use Icewind\SMB\Exception\InvalidRequestException; use Icewind\Streams\File; @@ -89,7 +90,11 @@ class NativeStream implements File { } public function stream_stat() { - return $this->state->fstat($this->handle); + try { + return $this->state->fstat($this->handle); + } catch (Exception $e) { + return false; + } } public function stream_tell() { -- cgit v1.2.3