From: Tomas V.V.Cox Date: Wed, 22 May 2002 00:15:27 +0000 (+0000) Subject: Make pear -vv XXX set the XML_RPC debug flag X-Git-Tag: RELEASE_0_10~42 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4d10d79c3eff5d99336652be1877bc63db75d5a8;p=php Make pear -vv XXX set the XML_RPC debug flag --- diff --git a/pear/PEAR/Remote.php b/pear/PEAR/Remote.php index ec0466172f..1197c33f7a 100644 --- a/pear/PEAR/Remote.php +++ b/pear/PEAR/Remote.php @@ -64,7 +64,9 @@ class PEAR_Remote extends PEAR if ($username && $password) { $c->setCredentials($username, $password); } -// $c->setDebug(1); + if ($this->config->get('verbose') >= 3) { + $c->setDebug(1); + } $r = $c->send($f); if (!$r) { return $this->raiseError("XML_RPC send failed"); @@ -73,6 +75,7 @@ class PEAR_Remote extends PEAR if ($e = $r->faultCode()) { return $this->raiseError($r->faultString(), $e); } + return XML_RPC_decode($v); } @@ -193,10 +196,10 @@ class PEAR_Remote extends PEAR { global $XML_RPC_Boolean, $XML_RPC_Int, $XML_RPC_Double; global $XML_RPC_String, $XML_RPC_Array, $XML_RPC_Struct; - + $type = gettype($php_val); $xmlrpcval = new XML_RPC_value; - + switch($type) { case "array": reset($php_val);