Home » PEAR » PEAR » Bug #1330
unused variable in php-src/pear/PEAR/Command/Install.php
Details
| Submitted | 2004-05-03 09:05 UTC |
|---|---|
| From | kameshj at fastmail dot fm |
| Assigned | pajoye |
| Status | Closed |
| Package | PEAR |
| PHP Version | 5.0.0RC2 (Release Candidate 2) |
| OS | linux |
| Roadmaps | (Not assigned) |
Comments
[2004-05-03 09:05 UTC] kameshj at fastmail dot fm
Description:
------------
In php-src/pear/PEAR/Command/Install.php there is a variable bn
which is no more used in the code
Pasting the patch that removes the unwanted variable.
Index: Install.php
===================================================================
RCS file: /repository/php-src/pear/PEAR/Command/Install.php,v
retrieving revision 1.52
diff -u -r1.52 Install.php
--- Install.php 8 Jan 2004 17:33:13 -0000 1.52
+++ Install.php 27 Apr 2004 11:18:22 -0000
@@ -303,7 +303,6 @@
$downloaded =
$this->downloader->getDownloadedPackages();
$this->installer->sortPkgDeps($downloaded);
foreach ($downloaded as $pkg) {
- $bn = basename($pkg['file']);
$info = $this->installer->install($pkg['file'], $options,
$this->config);
if (is_array($info)) {
if ($this->config->get('verbose') > 0) {
[2004-05-16 15:29 UTC] paj at pearfr dot org
This bug has been fixed in CVS.
In case this was a documentation problem, the fix will show up at the
end of next Sunday (CET) on pear.php.net.
In case this was a pear.php.net website problem, the change will show
up on the website in short time.
Thank you for the report, and for helping us make PEAR better.