X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=src%2FClient.php;h=6d71c01c9455d459325999bcf4c4c328896dfa84;hb=a51c9f9fc82acc4d79f3c27e6dcad43721db5c02;hp=4e03d3e9d7bbf25f06d04ddf342e24f40292f7cd;hpb=b337d292eb5b5656d27a2fc9ab6796be300c59a3;p=plcapi.git diff --git a/src/Client.php b/src/Client.php index 4e03d3e..6d71c01 100644 --- a/src/Client.php +++ b/src/Client.php @@ -325,7 +325,7 @@ class Client } /** - * Set attributes for SSL communication: SSL version to use. Best left at 0 (default value ): let cURL decide + * Set attributes for SSL communication: SSL version to use. Best left at 0 (default value): let cURL decide * * @param int $i */ @@ -785,6 +785,7 @@ class Client $contextOptions['ssl']['verify_peer'] = $this->verifypeer; $contextOptions['ssl']['verify_peer_name'] = $this->verifypeer; } + $context = stream_context_create($contextOptions); if ($timeout <= 0) { @@ -807,6 +808,7 @@ class Client $err = error_get_last(); $this->errstr = $err['message']; } + $this->errstr = 'Connect error: ' . $this->errstr; $r = new Response(0, PhpXmlRpc::$xmlrpcerr['http_error'], $this->errstr . ' (' . $this->errno . ')');