]> granicus.if.org Git - php/commitdiff
Remove pear/XML_RPC dependency for the pear installer
authorRasmus Lerdorf <rasmus@php.net>
Thu, 11 Aug 2005 16:43:26 +0000 (16:43 +0000)
committerRasmus Lerdorf <rasmus@php.net>
Thu, 11 Aug 2005 16:43:26 +0000 (16:43 +0000)
PEAR guys, please doublecheck this.

NEWS
configure.in
pear/PEAR/Remote.php
pear/go-pear-list.php
pear/package-PEAR.xml
pear/packages/XML_RPC-1.3.1.tar [deleted file]
pear/tests/PEAR_test_mock_pearweb.php.inc
pear/tests/download_test_classes.php.inc
pear/tests/package-PEARtests.xml

diff --git a/NEWS b/NEWS
index 52134e630004d9b651c11fda41de07fe9db143c8..6fb0b594d88126797e85825f5aa05f15ed52837c 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -1,6 +1,7 @@
 PHP                                                                        NEWS
 |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
 ?? Aug 2005, PHP 5.1 Release Candidate 1
+- Unbundled XML_RPC pear class and force ext/xmlrpc dependency on pear (Rasmus)
 - Updated bundled libraries in Windows distribution. (Edin)
   . zlib 1.2.3
   . curl 7.14.0
index a99eab8f486518a007cccce4c1d2341c663b99b3..ac5a97ac69024261a5bf44ed30602ab7d76d3c89 100644 (file)
@@ -874,15 +874,10 @@ if test "$PHP_PEAR" != "no"; then
     pear_error_msg="$pear_error_msg 
                     PEAR requires XML to be enabled.     Add --enable-xml to the configure line. (or --without-pear)"
   fi
-
-dnl
-dnl ext/xmlrpc is not really there yet to be a requirement..
-dnl
-dnl  if test "$PHP_XMLRPC" = "no"; then
-dnl    pear_error_msg="$pear_error_msg 
-dnl                    PEAR requires XML-RPC to be enabled. Add --with-xmlrpc to the configure line. (or --without-pear)"
-dnl fi
-dnl
+  if test "$PHP_XMLRPC" = "no"; then
+    pear_error_msg="$pear_error_msg 
+                    PEAR requires XML-RPC to be enabled. Add --with-xmlrpc to the configure line. (or --without-pear)"
+  fi
 
   if test "$pear_error_msg"; then
     AC_MSG_ERROR([$pear_error_msg])
index c75b11b5c19063c38898ff83101b2997762520a5..1da25f08153a8b9e5d5054dbb30cf0028c73754d 100644 (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');
index 881fcf616b2f67a7a391828fb9663a53858ad278..e23646b87920eddeddda483139d3c0a8ce051b76 100755 (executable)
@@ -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",
 
index acab881498f9fbf4dd308a8383dd2b7a43e3c667..5d4e292b5023ffe236b920a121658124abde46fe 100644 (file)
       <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>
diff --git a/pear/packages/XML_RPC-1.3.1.tar b/pear/packages/XML_RPC-1.3.1.tar
deleted file mode 100644 (file)
index 8fe279b..0000000
Binary files a/pear/packages/XML_RPC-1.3.1.tar and /dev/null differ
index f1f7edc9c1ac9bba83116883720186eca4fcb248..11cb0cc25cb9fa3bb83f7b241b586342d704e421 100644 (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;
     }
 }
-?>
\ No newline at end of file
+?>
index c27696d48c8ed19454ca42c3119afc3477f8390f..0341a2861163141ce67673a329bb8cff8f40f887 100644 (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;
     }
 }
-?>
\ No newline at end of file
+?>
index daceee967ba6254b06e8720fc037344845e2bb16..d4e9113fe68e4294a3b228ed500c432f3ccd3777 100644 (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>