Skip to content

Commit c792839

Browse files
committed
Remove pear/XML_RPC dependency for the pear installer
PEAR guys, please doublecheck this.
1 parent 9aa81a7 commit c792839

File tree

9 files changed

+13
-21
lines changed

9 files changed

+13
-21
lines changed

NEWS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
PHP NEWS
22
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
33
?? Aug 2005, PHP 5.1 Release Candidate 1
4+
- Unbundled XML_RPC pear class and force ext/xmlrpc dependency on pear (Rasmus)
45
- Updated bundled libraries in Windows distribution. (Edin)
56
. zlib 1.2.3
67
. curl 7.14.0

configure.in

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -874,15 +874,10 @@ if test "$PHP_PEAR" != "no"; then
874874
pear_error_msg="$pear_error_msg
875875
PEAR requires XML to be enabled. Add --enable-xml to the configure line. (or --without-pear)"
876876
fi
877-
878-
dnl
879-
dnl ext/xmlrpc is not really there yet to be a requirement..
880-
dnl
881-
dnl if test "$PHP_XMLRPC" = "no"; then
882-
dnl pear_error_msg="$pear_error_msg
883-
dnl PEAR requires XML-RPC to be enabled. Add --with-xmlrpc to the configure line. (or --without-pear)"
884-
dnl fi
885-
dnl
877+
if test "$PHP_XMLRPC" = "no"; then
878+
pear_error_msg="$pear_error_msg
879+
PEAR requires XML-RPC to be enabled. Add --with-xmlrpc to the configure line. (or --without-pear)"
880+
fi
886881

887882
if test "$pear_error_msg"; then
888883
AC_MSG_ERROR([$pear_error_msg])

pear/PEAR/Remote.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,8 @@ function call($method)
115115
$this->saveCache($_args, $result);
116116
};
117117
return $result;
118-
}
119-
if (!@include_once("XML/RPC.php")) {
120-
return $this->raiseError("For this remote PEAR operation you need to install the XML_RPC package");
118+
} else {
119+
return $this->raiseError("For this remote PEAR operation you need to load the xmlrpc extension");
121120
}
122121
array_shift($args);
123122
$server_host = $this->config->get('master_server');

pear/go-pear-list.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
$packages = array(
99
// required packages for the installer
1010
"PEAR" => "1.3.5",
11-
"XML_RPC" => "1.3.1",
1211
"Console_Getopt" => "1.2",
1312
"Archive_Tar" => "1.3.1",
1413

pear/package-PEAR.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@
124124
<dep type="php" rel="ge" version="4.2"/>
125125
<dep type="pkg" rel="ge" version="1.1">Archive_Tar</dep>
126126
<dep type="pkg" rel="ge" version="1.2">Console_Getopt</dep>
127-
<dep type="pkg" rel="ge" version="1.0.4">XML_RPC</dep>
127+
<dep type="ext" rel="has">xmlrpc</dep>
128128
<dep type="ext" rel="has">xml</dep>
129129
<dep type="ext" rel="has">pcre</dep>
130130
</deps>

pear/packages/XML_RPC-1.3.1.tar

-118 KB
Binary file not shown.

pear/tests/PEAR_test_mock_pearweb.php.inc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
<?php
2-
require_once 'XML/RPC/Server.php';
32

43
class PEAR_test_mock_pearweb {
54
var $_config;
@@ -231,4 +230,4 @@ class PEAR_test_mock_pearweb {
231230
return $newval;
232231
}
233232
}
234-
?>
233+
?>

pear/tests/download_test_classes.php.inc

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
<?php
2-
require_once 'XML/RPC.php';
32
require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . 'PEAR_test_mock_pearweb.php.inc';
43
$GLOBALS['pearweb'] = new PEAR_test_mock_pearweb;
54
class test_XML_RPC_Client extends XML_RPC_Client {
@@ -94,8 +93,8 @@ class test_PEAR_Remote extends PEAR_Remote {
9493
};
9594
return $result;
9695
}
97-
if (!@include_once("XML/RPC.php")) {
98-
return $this->raiseError("For this remote PEAR operation you need to install the XML_RPC package");
96+
if (!extension_loaded("xmlrpc")) {
97+
return $this->raiseError("For this remote PEAR operation you need to install the xmlrpc extension");
9998
}
10099
array_shift($args);
101100
$server_host = $this->_registry->channelInfo($server_channel, 'server');
@@ -401,4 +400,4 @@ class test_PEAR_Downloader extends PEAR_Downloader {
401400
return $dest_file;
402401
}
403402
}
404-
?>
403+
?>

pear/tests/package-PEARtests.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<dep type="pkg" rel="ge" version="1.4.0dev6">PEAR</dep>
2323
<dep type="pkg" rel="ge" version="1.1">Archive_Tar</dep>
2424
<dep type="pkg" rel="ge" version="1.2">Console_Getopt</dep>
25-
<dep type="pkg" rel="ge" version="1.1.0">XML_RPC</dep>
25+
<dep type="ext" rel="has">xmlrpc</dep>
2626
<dep type="ext" rel="has">xml</dep>
2727
<dep type="ext" rel="has">pcre</dep>
2828
</deps>

0 commit comments

Comments
 (0)