PEAR guys, please doublecheck this.
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
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])
$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');
$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",
<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>
<?php
-require_once 'XML/RPC/Server.php';
class PEAR_test_mock_pearweb {
var $_config;
return $newval;
}
}
-?>
\ No newline at end of file
+?>
<?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 {
};
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');
return $dest_file;
}
}
-?>
\ No newline at end of file
+?>
<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>