1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

Remove pear/XML_RPC dependency for the pear installer

PEAR guys, please doublecheck this.
This commit is contained in:
Rasmus Lerdorf
2005-08-11 16:43:26 +00:00
parent 9aa81a786b
commit c792839d8f
9 changed files with 13 additions and 21 deletions

View File

@@ -115,9 +115,8 @@ class PEAR_Remote extends PEAR
$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");
} else {
return $this->raiseError("For this remote PEAR operation you need to load the xmlrpc extension");
}
array_shift($args);
$server_host = $this->config->get('master_server');

View File

@@ -8,7 +8,6 @@
$packages = array(
// required packages for the installer
"PEAR" => "1.3.5",
"XML_RPC" => "1.3.1",
"Console_Getopt" => "1.2",
"Archive_Tar" => "1.3.1",

View File

@@ -124,7 +124,7 @@
<dep type="php" rel="ge" version="4.2"/>
<dep type="pkg" rel="ge" version="1.1">Archive_Tar</dep>
<dep type="pkg" rel="ge" version="1.2">Console_Getopt</dep>
<dep type="pkg" rel="ge" version="1.0.4">XML_RPC</dep>
<dep type="ext" rel="has">xmlrpc</dep>
<dep type="ext" rel="has">xml</dep>
<dep type="ext" rel="has">pcre</dep>
</deps>

Binary file not shown.

View File

@@ -1,5 +1,4 @@
<?php
require_once 'XML/RPC/Server.php';
class PEAR_test_mock_pearweb {
var $_config;
@@ -231,4 +230,4 @@ class PEAR_test_mock_pearweb {
return $newval;
}
}
?>
?>

View File

@@ -1,5 +1,4 @@
<?php
require_once 'XML/RPC.php';
require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . 'PEAR_test_mock_pearweb.php.inc';
$GLOBALS['pearweb'] = new PEAR_test_mock_pearweb;
class test_XML_RPC_Client extends XML_RPC_Client {
@@ -94,8 +93,8 @@ class test_PEAR_Remote extends PEAR_Remote {
};
return $result;
}
if (!@include_once("XML/RPC.php")) {
return $this->raiseError("For this remote PEAR operation you need to install the XML_RPC package");
if (!extension_loaded("xmlrpc")) {
return $this->raiseError("For this remote PEAR operation you need to install the xmlrpc extension");
}
array_shift($args);
$server_host = $this->_registry->channelInfo($server_channel, 'server');
@@ -401,4 +400,4 @@ class test_PEAR_Downloader extends PEAR_Downloader {
return $dest_file;
}
}
?>
?>

View File

@@ -22,7 +22,7 @@
<dep type="pkg" rel="ge" version="1.4.0dev6">PEAR</dep>
<dep type="pkg" rel="ge" version="1.1">Archive_Tar</dep>
<dep type="pkg" rel="ge" version="1.2">Console_Getopt</dep>
<dep type="pkg" rel="ge" version="1.1.0">XML_RPC</dep>
<dep type="ext" rel="has">xmlrpc</dep>
<dep type="ext" rel="has">xml</dep>
<dep type="ext" rel="has">pcre</dep>
</deps>