From: Tomas V.V.Cox Date: Tue, 17 Jul 2001 19:11:48 +0000 (+0000) Subject: include only the needed files X-Git-Tag: PRE_TSRM_MERGE_PATCH~104 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=55c6e3795655ce443641e03fe92a4899cfe4a1b9;p=php include only the needed files --- diff --git a/pear/scripts/pear.in b/pear/scripts/pear.in index 41fdde598d..850a0d21a7 100644 --- a/pear/scripts/pear.in +++ b/pear/scripts/pear.in @@ -19,8 +19,6 @@ // +----------------------------------------------------------------------+ // require_once 'PEAR.php'; -require_once 'PEAR/Installer.php'; -require_once 'PEAR/Packager.php'; require_once 'Console/Getopt.php'; error_reporting(E_ALL ^ E_NOTICE); @@ -67,6 +65,7 @@ PEAR::setErrorHandling(PEAR_ERROR_PRINT); $command = $options[1][1]; switch ($command) { case 'install': + require_once 'PEAR/Installer.php'; $package = $options[1][2]; $installer =& new PEAR_Installer($script_dir, $ext_dir, $doc_dir); $installer->debug = $verbose; @@ -77,6 +76,7 @@ switch ($command) { } break; case 'package': + require_once 'PEAR/Packager.php'; $pkginfofile = $options[1][2]; $packager =& new PEAR_Packager($script_dir, $ext_dir, $doc_dir); $packager->debug = $verbose;