From: Alexander Ebert Date: Sun, 7 Jul 2013 21:56:23 +0000 (+0200) Subject: Prevented fsockopen() from throwing a warning if host is unreachable X-Git-Tag: 2.0.0_Beta_5~99 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=962149821354697663b4e9cfdb3112580221098e;p=GitHub%2FWoltLab%2FWCF.git Prevented fsockopen() from throwing a warning if host is unreachable --- 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); }