2 bugs found here, added deprecation warning for those who have written their own PEAR application

This commit is contained in:
Greg Beaver 2003-12-01 01:02:40 +00:00
parent 3e60df640e
commit cde3509868

View File

@ -575,6 +575,7 @@ class PEAR_Installer extends PEAR_Downloader
* @param false private recursion variable
* @param false private recursion variable
* @param false private recursion variable
* @deprecated in favor of PEAR_Downloader
*/
function download($packages, $options, &$config, &$installpackages,
&$errors, $installed = false, $willinstall = false, $state = false)
@ -583,6 +584,8 @@ class PEAR_Installer extends PEAR_Downloader
parent::PEAR_Downloader($this->ui, $options, $config);
$errors = $this->getErrorMsgs();
$installpackages = $this->getDownloadedPackages();
trigger_error("PEAR Warning: PEAR_Installer::download() is deprecated " .
"in favor of PEAR_Downloader class", E_USER_WARNING);
return parent::download($packages);
}