1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-03-24 17:40:43 +01:00

[ticket/15150] Hide errors if function stream_socket_client have been disabled

PHPBB3-15150
This commit is contained in:
Rubén Calvo 2017-04-02 15:17:31 +02:00
parent 2f277b6f67
commit 4147c38838

View File

@ -266,7 +266,7 @@ class jabber
$socket_context = stream_context_create($options);
if ($this->connection = stream_socket_client($remote_socket, $errorno, $errorstr, $this->timeout, STREAM_CLIENT_CONNECT, $socket_context))
if ($this->connection = @stream_socket_client($remote_socket, $errorno, $errorstr, $this->timeout, STREAM_CLIENT_CONNECT, $socket_context))
{
socket_set_blocking($this->connection, 0);
socket_set_timeout($this->connection, 60);