From cde3509868eece11acdb0ea6ad17c300f653988f Mon Sep 17 00:00:00 2001 From: Greg Beaver Date: Mon, 1 Dec 2003 01:02:40 +0000 Subject: [PATCH] 2 bugs found here, added deprecation warning for those who have written their own PEAR application --- pear/PEAR/Installer-minus-download.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pear/PEAR/Installer-minus-download.php b/pear/PEAR/Installer-minus-download.php index 33860959b9..4bc1d1ee6d 100644 --- a/pear/PEAR/Installer-minus-download.php +++ b/pear/PEAR/Installer-minus-download.php @@ -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); } -- 2.50.1