From: Greg Beaver Date: Mon, 1 Dec 2003 01:02:40 +0000 (+0000) Subject: 2 bugs found here, added deprecation warning for those who have written their own... X-Git-Tag: php-5.0.0b3RC1~460 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cde3509868eece11acdb0ea6ad17c300f653988f;p=php 2 bugs found here, added deprecation warning for those who have written their own PEAR application --- 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); }