|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #17127 pear upgrade <package> fails
Submitted: 2002-05-09 15:36 UTC Modified: 2002-05-09 15:57 UTC
From: colin at easydns dot com Assigned:
Status: Closed Package: PEAR related
PHP Version: 4.0CVS-2002-05-09 OS: Linux 2.4.6 / Debian
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: colin at easydns dot com
New email:
PHP Version: OS:


 [2002-05-09 15:36 UTC] colin at easydns dot com
I belive the following diff fixes this:

--- OLD.Installer.php   Thu May  9 15:33:55 2002
+++ Installer.php       Thu May  9 15:34:21 2002
@@ -250,7 +250,7 @@
         } elseif (!@is_file($pkgfile)) {
             if (preg_match('/^[A-Z][A-Za-z0-9_]+$/', $pkgfile)) {
                 // valid package name
-                if ($this->registry->packageExists($pkgfile)) {
+                if (empty($options['upgrade']) && $this->registry->packageExists($pkgfile)) {
                     return $this->raiseError("$pkgfile already installed");
                 if ($config === null) {

- Colin


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-05-09 15:57 UTC]
This bug has been fixed in CVS. You can grab a snapshot of the
CVS version at In case this was a documentation 
problem, the fix will show up soon at 
Thank you for the report.

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Apr 21 09:01:29 2024 UTC