git://git.onelab.eu
/
plcapi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
82b80c3
)
a comment
author
gggeek
<giunta.gaetano@gmail.com>
Tue, 7 Dec 2021 16:39:41 +0000
(16:39 +0000)
committer
gggeek
<giunta.gaetano@gmail.com>
Tue, 7 Dec 2021 16:39:41 +0000
(16:39 +0000)
src/Client.php
patch
|
blob
|
history
diff --git
a/src/Client.php
b/src/Client.php
index
4e03d3e
..
6d71c01
100644
(file)
--- 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
*/
*
* @param int $i
*/
@@
-785,6
+785,7
@@
class Client
$contextOptions['ssl']['verify_peer'] = $this->verifypeer;
$contextOptions['ssl']['verify_peer_name'] = $this->verifypeer;
}
$contextOptions['ssl']['verify_peer'] = $this->verifypeer;
$contextOptions['ssl']['verify_peer_name'] = $this->verifypeer;
}
+
$context = stream_context_create($contextOptions);
if ($timeout <= 0) {
$context = stream_context_create($contextOptions);
if ($timeout <= 0) {
@@
-807,6
+808,7
@@
class Client
$err = error_get_last();
$this->errstr = $err['message'];
}
$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 . ')');
$this->errstr = 'Connect error: ' . $this->errstr;
$r = new Response(0, PhpXmlRpc::$xmlrpcerr['http_error'], $this->errstr . ' (' . $this->errno . ')');