From: Pierre Joye Date: Tue, 9 Dec 2003 20:51:49 +0000 (+0000) Subject: - Fix pecl installer X-Git-Tag: php-4.3.5RC1~86 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1729d3ca756330cc4aae7d1451b6d44b82dc26bd;p=php - Fix pecl installer package::info() _must_ be called with PECL in mind There should be other issues, more later. --- diff --git a/pear/PEAR/Downloader.php b/pear/PEAR/Downloader.php index 07eff0c073..14a26a4a01 100644 --- a/pear/PEAR/Downloader.php +++ b/pear/PEAR/Downloader.php @@ -425,7 +425,7 @@ class PEAR_Downloader extends PEAR_Common if (in_array($pkgfile, $this->_toDownload)) { return false; } - $releases = $this->_remote->call('package.info', $pkgfile, 'releases'); + $releases = $this->_remote->call('package.info', $pkgfile, 'releases', true); if (!count($releases)) { return $this->raiseError("No releases found for package '$pkgfile'"); } @@ -508,7 +508,7 @@ class PEAR_Downloader extends PEAR_Common return false; } // {{{ get releases - $releases = $this->_remote->call('package.info', $info['name'], 'releases'); + $releases = $this->_remote->call('package.info', $info['name'], 'releases', true); if (PEAR::isError($releases)) { return $releases; }