cvs: php4 /pear/PEAR Remote.php

From: Date: Wed, 22 May 2002 00:15:28 +0000
Subject: cvs: php4 /pear/PEAR Remote.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-4024@lists.php.net to get a copy of this message
cox Tue May 21 20:15:28 2002 EDT Modified files: /php4/pear/PEAR Remote.php Log: Make pear -vv XXX set the XML_RPC debug flag Index: php4/pear/PEAR/Remote.php diff -u php4/pear/PEAR/Remote.php:1.21 php4/pear/PEAR/Remote.php:1.22 --- php4/pear/PEAR/Remote.php:1.21 Mon May 20 21:20:24 2002 +++ php4/pear/PEAR/Remote.php Tue May 21 20:15:27 2002 @@ -16,7 +16,7 @@ // | Author: Stig Bakken <ssb@fast.no> | // +----------------------------------------------------------------------+ // -// $Id: Remote.php,v 1.21 2002/05/21 01:20:24 ssb Exp $ +// $Id: Remote.php,v 1.22 2002/05/22 00:15:27 cox Exp $ require_once 'PEAR.php'; require_once 'PEAR/Config.php'; @@ -64,7 +64,9 @@ 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 @@ if ($e = $r->faultCode()) { return $this->raiseError($r->faultString(), $e); } + return XML_RPC_decode($v); } @@ -193,10 +196,10 @@ { 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);

« previous php.pear.cvs (#4024) next »