From 962149821354697663b4e9cfdb3112580221098e Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Sun, 7 Jul 2013 23:56:23 +0200 Subject: [PATCH] Prevented fsockopen() from throwing a warning if host is unreachable --- wcfsetup/install/files/lib/system/io/RemoteFile.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/system/io/RemoteFile.class.php b/wcfsetup/install/files/lib/system/io/RemoteFile.class.php index d73c611d2f..391fbd7a69 100644 --- a/wcfsetup/install/files/lib/system/io/RemoteFile.class.php +++ b/wcfsetup/install/files/lib/system/io/RemoteFile.class.php @@ -49,7 +49,7 @@ class RemoteFile extends File { $this->host = $host; $this->port = $port; - $this->resource = fsockopen($host, $port, $this->errorNumber, $this->errorDesc, $timeout); + $this->resource = @fsockopen($host, $port, $this->errorNumber, $this->errorDesc, $timeout); if ($this->resource === false) { throw new SystemException('Can not connect to ' . $host, 0, $this->errorDesc); } -- 2.20.1