mirror of
https://github.com/php/php-src.git
synced 2024-11-25 02:44:58 +08:00
* if verbosity config is > 3, display xmlrpc response
* another bugfix
This commit is contained in:
parent
6cac569055
commit
972edb2795
@ -162,6 +162,10 @@ class PEAR_Remote extends PEAR
|
||||
$response .= $chunk;
|
||||
}
|
||||
fclose($fp);
|
||||
if ($this->config->get('verbose') > 3) {
|
||||
print "XMLRPC RESPONSE:\n";
|
||||
var_dump($response);
|
||||
}
|
||||
$ret = xmlrpc_decode($response);
|
||||
if (is_array($ret) && isset($ret['__PEAR_TYPE__'])) {
|
||||
if ($ret['__PEAR_TYPE__'] == 'error') {
|
||||
@ -182,9 +186,9 @@ class PEAR_Remote extends PEAR
|
||||
null, null, $ret['userinfo']);
|
||||
}
|
||||
}
|
||||
} elseif (is_array($ret) && sizeof($ret) == 1 &&
|
||||
isset($ret[0]['faultString']) &&
|
||||
isset($ret[0]['faultCode'])) {
|
||||
} elseif (is_array($ret) && sizeof($ret) == 1 && is_array($ret[0]) &&
|
||||
!empty($ret[0]['faultString']) &&
|
||||
!empty($ret[0]['faultCode'])) {
|
||||
extract($ret[0]);
|
||||
$faultString = "XML-RPC Server Fault: " .
|
||||
str_replace("\n", " ", $faultString);
|
||||
|
Loading…
Reference in New Issue
Block a user