FAQ
Edit report at http://pear.php.net/bugs/bug.php?id=15914&edit=1

ID: 15914
Updated by: cweiske@php.net
Reported By: cweiske at php dot net
Summary: pear upgrade installs different version if desired
version not found
Status: Assigned
Type: Bug
Package: PEAR
PHP Version: 5.2.8
Assigned To: dufuz
Roadmap Versions:
New Comment:

Yes, I had phpunit installed previously and wanted to upgrade. Not sure
of the old version, though - I think it was 3.3.15, the stable one. Or
the previous alpha :)


Previous Comments:
------------------------------------------------------------------------

[2009-03-04 16:52:07] dufuz

Did you have phpunit/phpunit already installed when you attempted to do
this or ? if so - which version of it ?

------------------------------------------------------------------------

[2009-02-19 05:40:40] cweiske

I know that I tried the /wrong/ version. That's the problem - see the
description of the bug and the title.

------------------------------------------------------------------------

[2009-02-18 23:50:05] dufuz

can't seem to reproduce it on my end at the moment, can someone else ?
I will try to bolster the code around this before a release to at least
not show a fatal error like that.

Also Christian, you were trying to install with 3.4.0a4 today while
Sebastian uses 3.4.0alpha4 :-)

------------------------------------------------------------------------

[2009-02-18 23:48:11] dufuz

<div id="changeset">
<span class="removed">-Assigned To:</span>
<span class="added">+Assigned To: dufuz</span>
<span class="removed">-Roadmap Versions: 1.8.0alpha2</span>
<span class="added">+Roadmap Versions: 1.8.0alpha1, 1.8.0alpha2</span>
</div>

------------------------------------------------------------------------

[2009-02-18 16:45:22] cweiske

Description:
------------
When trying to upgrade a non-existent version of a package, pear
tries to install the latest known version.
When not using -f, it crashes.

Test script:
---------------
cweiske:~/Dev/cvs/pear/pear-core> pear upgrade -f
phpunit/phpunit-1.2.3somestrange4
WARNING: failed to download pear.phpunit.de/phpunit, version
"1.2.3somestrange4", will instead download version 3.3.14, stability
"stable"
WARNING: channel "pear.phpunit.de" has updated its protocols, use "pear
channel-update pear.phpunit.de" to update
Did not download optional dependencies: pear/Image_GraphViz, pear/Log,
use --alldeps to download automatically
downloading PHPUnit-3.3.14.tgz ...
Starting to download PHPUnit-3.3.14.tgz (271,938 bytes)
..............................

Expected result:
----------------


Actual result:
--------------
cweiske:~/Dev/cvs/pear/pear-core> pear upgrade
phpunit/phpunit-1.2.3somestrange4
WARNING: channel "pear.phpunit.de" has updated its protocols, use "pear
channel-update pear.phpunit.de" to update
Did not download optional dependencies: pear/Log, use --alldeps to
download automatically

Fatal error: Call to a member function getArchiveFile() on a non-object
in /home/cweiske/Dev/cvs/pear/instpear/share/pear/PEAR/Downloader.php on
line 476

Call Stack:
0,0035 444104 1. {main}()
/home/cweiske/Dev/cvs/pear/instpear/share/pear/pearcmd.php:0
0,2017 5517840 2. PEAR_Command_Common->run()
/home/cweiske/Dev/cvs/pear/instpear/share/pear/pearcmd.php:312
0,2017 5517840 3. PEAR_Command_Install->doInstall()
/home/cweiske/Dev/cvs/pear/instpear/share/pear/PEAR/Command/Common.php:275
0,3672 11328376 4. PEAR_Downloader->download()
/home/cweiske/Dev/cvs/pear/instpear/share/pear/PEAR/Command/Install.php:671

------------------------------------------------------------------------

Search Discussions

  • Helgith at Mar 7, 2009 at 9:18 pm
    Edit report at http://pear.php.net/bugs/bug.php?id=15914&edit=1

    ID: 15914
    Updated by: helgith@gmail.com
    Reported By: cweiske at php dot net
    Summary: pear upgrade installs different version if desired
    version not found
    -Status: Assigned
    +Status: Closed
    Type: Bug
    Package: PEAR
    PHP Version: 5.2.8
    Assigned To: dufuz
    Roadmap Versions:
    New Comment:

    -Status: Assigned
    +Status: Closed

    This bug has been fixed in CVS.

    If this was a documentation problem, the fix will appear on
    pear.php.net by the end of next Sunday (CET).

    If this was a problem with the pear.php.net website, the change should
    be live shortly.

    Otherwise, the fix will appear in the package's next release.

    Thank you for the report and for helping us make PEAR better.

    Fixed for me but please test it just in case - perhaps I didn't catch
    them all or the fix was not elegant enough.


    Previous Comments:
    ------------------------------------------------------------------------

    [2009-03-07 18:51:24] cweiske

    Yes, I had phpunit installed previously and wanted to upgrade. Not sure
    of the old version, though - I think it was 3.3.15, the stable one. Or
    the previous alpha :)

    ------------------------------------------------------------------------

    [2009-03-04 16:52:07] dufuz

    Did you have phpunit/phpunit already installed when you attempted to do
    this or ? if so - which version of it ?

    ------------------------------------------------------------------------

    [2009-02-19 05:40:40] cweiske

    I know that I tried the /wrong/ version. That's the problem - see the
    description of the bug and the title.

    ------------------------------------------------------------------------

    [2009-02-18 23:50:05] dufuz

    can't seem to reproduce it on my end at the moment, can someone else ?
    I will try to bolster the code around this before a release to at least
    not show a fatal error like that.

    Also Christian, you were trying to install with 3.4.0a4 today while
    Sebastian uses 3.4.0alpha4 :-)

    ------------------------------------------------------------------------

    [2009-02-18 23:48:11] dufuz

    -Assigned To:
    +Assigned To: dufuz
    -Roadmap Versions: 1.8.0alpha2
    +Roadmap Versions: 1.8.0alpha1, 1.8.0alpha2


    ------------------------------------------------------------------------

    The remainder of the comments for this report are too long. To view
    the rest of the comments, please view the bug report online at
    http://pear.php.net/bugs/bug.php?id=15914

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedMar 7, '09 at 6:51p
activeMar 7, '09 at 9:18p
posts2
users2
websitepear.php.net

2 users in discussion

Cweiske: 1 post Helgith: 1 post

People

Translate

site design / logo © 2022 Grokbase