]> granicus.if.org Git - php/commitdiff
Make pear -vv XXX set the XML_RPC debug flag
authorTomas V.V.Cox <cox@php.net>
Wed, 22 May 2002 00:15:27 +0000 (00:15 +0000)
committerTomas V.V.Cox <cox@php.net>
Wed, 22 May 2002 00:15:27 +0000 (00:15 +0000)
pear/PEAR/Remote.php

index ec0466172f73a594730ce8c03f5107cd93c630dd..1197c33f7a03fb1bb9a6c33d37237c6194220e3a 100644 (file)
@@ -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);