From ad2694ab61c149e2abd1311f8612585ca7f7d996 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Thu, 17 May 2012 20:40:51 +0200 Subject: [PATCH] Fixing an error during WCFSetup --- wcfsetup/install/files/lib/system/io/File.class.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/wcfsetup/install/files/lib/system/io/File.class.php b/wcfsetup/install/files/lib/system/io/File.class.php index 25c0f46462..2a57431edf 100644 --- a/wcfsetup/install/files/lib/system/io/File.class.php +++ b/wcfsetup/install/files/lib/system/io/File.class.php @@ -61,9 +61,12 @@ class File { * Closes the file descriptor. */ public function __destruct() { - if (is_resource($this->resource)) { - fclose($this->resource); - } + try { + if (is_resource($this->resource)) { + fclose($this->resource); + } + } // we don't care about exceptions when closing + catch (SystemException $e) { } } /** -- 2.20.1