mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
[ticket/15150] Hide errors if function stream_socket_client have been disabled
PHPBB3-15150
This commit is contained in:
parent
2f277b6f67
commit
4147c38838
1 changed files with 1 additions and 1 deletions
|
@ -266,7 +266,7 @@ class jabber
|
||||||
|
|
||||||
$socket_context = stream_context_create($options);
|
$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_blocking($this->connection, 0);
|
||||||
socket_set_timeout($this->connection, 60);
|
socket_set_timeout($this->connection, 60);
|
||||||
|
|
Loading…
Add table
Reference in a new issue