summaryrefslogtreecommitdiff
path: root/pear
diff options
context:
space:
mode:
authorPierre Joye <pajoye@php.net>2005-08-18 21:29:28 +0000
committerPierre Joye <pajoye@php.net>2005-08-18 21:29:28 +0000
commitf7ef84c32d492367c71d2990be83dd620181098b (patch)
treecd5b7732ff82992ab17bde19234196d095da575b /pear
parentb31ff96be95b53a103eae2659a18690170e29ab9 (diff)
downloadphp-git-f7ef84c32d492367c71d2990be83dd620181098b.tar.gz
- fix bad revert and make the xmlrpc ext detections fallback
forgot that 5.1 still has pear in its branche
Diffstat (limited to 'pear')
-rw-r--r--pear/PEAR/Remote.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/pear/PEAR/Remote.php b/pear/PEAR/Remote.php
index 8becb4e70f..a42750af7c 100644
--- a/pear/PEAR/Remote.php
+++ b/pear/PEAR/Remote.php
@@ -115,9 +115,10 @@ class PEAR_Remote extends PEAR
$this->saveCache($_args, $result);
};
return $result;
+ } else {
+ return $this->raiseError("For this remote PEAR operation you need to load the xmlrpc extension or install XML_RPC");
}
- if (!@include_once("XML/RPC.php")) {
- return $this->raiseError("For this remote PEAR operation you need to install the XML_RPC package");
+
array_shift($args);
$server_host = $this->config->get('master_server');
$username = $this->config->get('username');