Re: cvs: php4 /pear/scripts pear.in
| From: | Jon Parise | Date: | Tue, 17 Jul 2001 19:13:25 +0000 |
| Subject: | Re: cvs: php4 /pear/scripts pear.in | ||
| References: | 1 | Groups: | php.pear.cvs |
| Request: | Send a blank email to pear-cvs+get-285@lists.php.net to get a copy of this message | ||
On Tue, Jul 17, 2001 at 07:11:49PM -0000, Thomas V.V.Cox wrote:
> $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 @@
> }
> 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;
Shouldn't those be changed to include_once calls being they're
inside conditions?
--
Jon Parise (jon@csh.rit.edu) . Rochester Inst. of Technology
http://www.csh.rit.edu/~jon/ : Computer Science House
Member