Merge pull request #2581 from PiBa-NL/23_silence_syncerror

This commit is contained in:
Renato Botelho 2016-02-03 07:54:33 -02:00
commit dcbbd7b40a

View File

@ -932,7 +932,7 @@ class XML_RPC_Client extends XML_RPC_Base {
$ctx = stream_context_create($ctx_options);
$fp = stream_socket_client("{$this->protocol}{$server}:{$port}",
$fp = @stream_socket_client("{$this->protocol}{$server}:{$port}",
$this->errno, $this->errstr,
($timeout > 0 ? $timeout : ini_get("default_socket_timeout")),
STREAM_CLIENT_CONNECT, $ctx);