Re: pear-core: If no "xmlrpc"-extension could php-implementation be used?
| From: | Pierre-Alain Joye | Date: | Sun, 28 Sep 2003 18:24:38 +0000 |
| Subject: | Re: pear-core: If no "xmlrpc"-extension could php-implementation be used? | ||
| References: | 1 2 3 4 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-22141@lists.php.net to get a copy of this message | ||
On Sun, 28 Sep 2003 20:15:47 +0200
Martin Jansen <mj@php.net> wrote:
> On Sun Sep 28, 2003 at 08:0621PM +0200, Pierre-Alain Joye wrote:
> > At least clean up the pear install (if installed from whatever rpms
> > around) and install a fresh one using go-pear
>
> I don't think we should expect people to update PEAR, when they are
> using some out-of-the-box release that came with their distribution.
>
> If PEAR actually does not fall back on XML_RPC (which I doubt), we
> should fix that.
I think the following code works (copy/paste from remote :) ):
if (extension_loaded("xmlrpc")) {
$result = call_user_func_array(array(&$this, 'call_epi'),
$args); if (!PEAR::isError($result)) {
$this->saveCache($_args, $result);
};
return $result;
}
if (!@include_once("XML/RPC.php")) {
return $this->raiseError("For this remote PEAR operation you
need to install the XML_RPC package"); }
....
And people using early version of PEAR with borker early RPMs from
RedHat should upgrade, definitally :), but it's only an advice ;)
pierre