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

ID: 17986
Updated by: helgith@gmail.com
Reported By: sb at sebastian-bergmann dot de
Summary: PEAR Installer cannot handle files moved between
packages
Status: Assigned
Type: Bug
Package: PEAR
Operating System: Irrelevant
Package Version: 1.9.1
PHP Version: 5.3.3
Assigned To: dufuz
Roadmap Versions:
New Comment:

I could reproduce this, I have a fix for this. It's pending a few more
tests but it will get
into the next release.


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

[2010-11-10 01:59:11] dufuz

I tried this on OS X, using PEAR 1.9.2 (trunk); I will have to try it on
a other OS but I didn't manage to replicate this.
I also attempted this with 1.9.1 on the same machine.

See below how I replicate it and tell me if I missed a step somewhere
which could help me replicate this.

Helgi:trunk helgi$ sudo pear install phpunit/phpunit-3.4.15
downloading PHPUnit-3.4.15.tgz ...
Starting to download PHPUnit-3.4.15.tgz (255,036 bytes)
.....................................................done: 255,036
bytes
install ok: channel://pear.phpunit.de/PHPUnit-3.4.15

Helgi:trunk helgi$ sudo pear upgrade phpunit/phpunit
phpunit/PHPUnit requires package
"channel://pear.symfony-project.com/YAML" (version >= 1.0.2)
phpunit/PHPUnit can optionally use PHP extension "dbus"
phpunit/DbUnit requires package
"channel://pear.symfony-project.com/YAML" (version >= 1.0.2)
phpunit/PHP_CodeCoverage requires package
"channel://components.ez.no/ConsoleTools" (version >= 1.6)
phpunit/PHP_CodeCoverage can optionally use PHP extension "xdebug"
(version >= 2.0.5)
phpunit/PHP_TokenStream requires package
"channel://components.ez.no/ConsoleTools" (version >= 1.6)
downloading File_Iterator-1.2.3.tgz ...
Starting to download File_Iterator-1.2.3.tgz (3,406 bytes)
....done: 3,406 bytes
downloading Text_Template-1.0.0.tgz ...
Starting to download Text_Template-1.0.0.tgz (2,493 bytes)
...done: 2,493 bytes
downloading PHP_Timer-1.0.0.tgz ...
Starting to download PHP_Timer-1.0.0.tgz (2,536 bytes)
...done: 2,536 bytes
downloading PHPUnit_MockObject-1.0.1.tgz ...
Starting to download PHPUnit_MockObject-1.0.1.tgz (17,277 bytes)
...done: 17,277 bytes
downloading PHPUnit_Selenium-1.0.0.tgz ...
Starting to download PHPUnit_Selenium-1.0.0.tgz (15,252 bytes)
...done: 15,252 bytes
upgrade ok: channel://pear.phpunit.de/File_Iterator-1.2.3
upgrade ok: channel://pear.phpunit.de/Text_Template-1.0.0
upgrade ok: channel://pear.phpunit.de/PHP_Timer-1.0.0
upgrade ok: channel://pear.phpunit.de/PHPUnit_Selenium-1.0.0
upgrade ok: channel://pear.phpunit.de/PHPUnit_MockObject-1.0.1

Helgi:trunk helgi$ pear list-files phpunit/phpunit_mockobject
Installed Files For phpunit/phpunit_mockobject
==============================================
Type Install Path
php /usr/lib/php/PHPUnit/Framework/MockObject/Builder/Identity.php
php
/usr/lib/php/PHPUnit/Framework/MockObject/Builder/InvocationMocker.php
php /usr/lib/php/PHPUnit/Framework/MockObject/Builder/Match.php
php
/usr/lib/php/PHPUnit/Framework/MockObject/Builder/MethodNameMatch.php
php /usr/lib/php/PHPUnit/Framework/MockObject/Builder/Namespace.php
php
/usr/lib/php/PHPUnit/Framework/MockObject/Builder/ParametersMatch.php
php /usr/lib/php/PHPUnit/Framework/MockObject/Builder/Stub.php
php
/usr/lib/php/PHPUnit/Framework/MockObject/Generator/mocked_class.tpl.dist
php
/usr/lib/php/PHPUnit/Framework/MockObject/Generator/mocked_clone.tpl.dist
php
/usr/lib/php/PHPUnit/Framework/MockObject/Generator/mocked_object_method.tpl.dist
php
/usr/lib/php/PHPUnit/Framework/MockObject/Generator/mocked_static_method.tpl.dist
php
/usr/lib/php/PHPUnit/Framework/MockObject/Generator/unmocked_clone.tpl.dist
php
/usr/lib/php/PHPUnit/Framework/MockObject/Generator/wsdl_class.tpl.dist
php
/usr/lib/php/PHPUnit/Framework/MockObject/Generator/wsdl_method.tpl.dist
php /usr/lib/php/PHPUnit/Framework/MockObject/Invocation/Object.php
php /usr/lib/php/PHPUnit/Framework/MockObject/Invocation/Static.php
php
/usr/lib/php/PHPUnit/Framework/MockObject/Matcher/AnyInvokedCount.php
php
/usr/lib/php/PHPUnit/Framework/MockObject/Matcher/AnyParameters.php
php /usr/lib/php/PHPUnit/Framework/MockObject/Matcher/Invocation.php
php
/usr/lib/php/PHPUnit/Framework/MockObject/Matcher/InvokedAtIndex.php
php
/usr/lib/php/PHPUnit/Framework/MockObject/Matcher/InvokedAtLeastOnce.php
php /usr/lib/php/PHPUnit/Framework/MockObject/Matcher/InvokedCount.php
php
/usr/lib/php/PHPUnit/Framework/MockObject/Matcher/InvokedRecorder.php
php /usr/lib/php/PHPUnit/Framework/MockObject/Matcher/MethodName.php
php /usr/lib/php/PHPUnit/Framework/MockObject/Matcher/Parameters.php
php
/usr/lib/php/PHPUnit/Framework/MockObject/Matcher/StatelessInvocation.php
php
/usr/lib/php/PHPUnit/Framework/MockObject/Stub/ConsecutiveCalls.php
php /usr/lib/php/PHPUnit/Framework/MockObject/Stub/Exception.php
php
/usr/lib/php/PHPUnit/Framework/MockObject/Stub/MatcherCollection.php
php /usr/lib/php/PHPUnit/Framework/MockObject/Stub/Return.php
php /usr/lib/php/PHPUnit/Framework/MockObject/Stub/ReturnArgument.php
php /usr/lib/php/PHPUnit/Framework/MockObject/Stub/ReturnCallback.php
php /usr/lib/php/PHPUnit/Framework/MockObject/Generator.php
php /usr/lib/php/PHPUnit/Framework/MockObject/InvocationMocker.php
php /usr/lib/php/PHPUnit/Framework/MockObject/Invocation.php
php /usr/lib/php/PHPUnit/Framework/MockObject/Invokable.php
php /usr/lib/php/PHPUnit/Framework/MockObject/Matcher.php
php /usr/lib/php/PHPUnit/Framework/MockObject/MockBuilder.php
php /usr/lib/php/PHPUnit/Framework/MockObject/MockObject.php
php /usr/lib/php/PHPUnit/Framework/MockObject/Stub.php
php /usr/lib/php/PHPUnit/Framework/MockObject/Verifiable.php


Helgi:trunk helgi$ tree /usr/lib/php/PHPUnit/Framework/MockObject/
/usr/lib/php/PHPUnit/Framework/MockObject/
??? Builder
?   ??? Identity.php
?   ??? InvocationMocker.php
?   ??? Match.php
?   ??? MethodNameMatch.php
?   ??? Namespace.php
?   ??? ParametersMatch.php
?   ??? Stub.php
??? Generator
?   ??? mocked_class.tpl.dist
?   ??? mocked_clone.tpl.dist
?   ??? mocked_method.tpl.dist
?   ??? mocked_object_method.tpl.dist
?   ??? mocked_static_method.tpl.dist
?   ??? unmocked_clone.tpl.dist
?   ??? wsdl_class.tpl.dist
?   ??? wsdl_method.tpl.dist
??? Generator.php
??? Invocation
?   ??? Object.php
?   ??? Static.php
??? Invocation.php
??? InvocationMocker.php
??? Invokable.php
??? Matcher
?   ??? AnyInvokedCount.php
?   ??? AnyParameters.php
?   ??? Invocation.php
?   ??? InvokedAtIndex.php
?   ??? InvokedAtLeastOnce.php
?   ??? InvokedCount.php
?   ??? InvokedRecorder.php
?   ??? MethodName.php
?   ??? Parameters.php
?   ??? StatelessInvocation.php
??? Matcher.php
??? MockBuilder.php
??? MockObject.php
??? Stub
?   ??? ConsecutiveCalls.php
?   ??? Exception.php
?   ??? MatcherCollection.php
?   ??? Return.php
?   ??? ReturnArgument.php
?   ??? ReturnCallback.php
??? Stub.php
??? Verifiable.php

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

[2010-11-10 01:17:07] dufuz

-Assigned To:
+Assigned To: dufuz


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

[2010-10-23 23:15:02] dufuz

I will have a look at it but I suspect you might be attempting something
weird; I have
successfully split packages up and thus moving a file from package A
into B.
File was split into 3 packages: File, File_CSV and File_Utils without
any problems.

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

[2010-10-22 09:41:10] sebastian

Description:
------------
See
http://sebastian-bergmann.de/archives/899-PHPUnit-3.5-Upgrading-Woes.html
for details.

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

Search Discussions

  • Helgith at Dec 7, 2010 at 2:39 am
    Edit report at http://pear.php.net/bugs/bug.php?id=17986&edit=1

    ID: 17986
    Updated by: helgith@gmail.com
    Reported By: sb at sebastian-bergmann dot de
    Summary: PEAR Installer cannot handle files moved between
    packages
    -Status: Assigned
    +Status: Closed
    Type: Bug
    Package: PEAR
    Operating System: Irrelevant
    Package Version: 1.9.1
    PHP Version: 5.3.3
    Assigned To: dufuz
    Roadmap Versions:
    New Comment:

    -Status: Assigned
    +Status: Closed
    This bug has been fixed in SVN.

    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.




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

    [2010-12-05 06:38:57] dufuz

    I could reproduce this, I have a fix for this. It's pending a few more
    tests but it will get
    into the next release.

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

    [2010-11-10 01:59:11] dufuz

    I tried this on OS X, using PEAR 1.9.2 (trunk); I will have to try it on
    a other OS but I didn't manage to replicate this.
    I also attempted this with 1.9.1 on the same machine.

    See below how I replicate it and tell me if I missed a step somewhere
    which could help me replicate this.

    Helgi:trunk helgi$ sudo pear install phpunit/phpunit-3.4.15
    downloading PHPUnit-3.4.15.tgz ...
    Starting to download PHPUnit-3.4.15.tgz (255,036 bytes)
    .....................................................done: 255,036
    bytes
    install ok: channel://pear.phpunit.de/PHPUnit-3.4.15

    Helgi:trunk helgi$ sudo pear upgrade phpunit/phpunit
    phpunit/PHPUnit requires package
    "channel://pear.symfony-project.com/YAML" (version >= 1.0.2)
    phpunit/PHPUnit can optionally use PHP extension "dbus"
    phpunit/DbUnit requires package
    "channel://pear.symfony-project.com/YAML" (version >= 1.0.2)
    phpunit/PHP_CodeCoverage requires package
    "channel://components.ez.no/ConsoleTools" (version >= 1.6)
    phpunit/PHP_CodeCoverage can optionally use PHP extension "xdebug"
    (version >= 2.0.5)
    phpunit/PHP_TokenStream requires package
    "channel://components.ez.no/ConsoleTools" (version >= 1.6)
    downloading File_Iterator-1.2.3.tgz ...
    Starting to download File_Iterator-1.2.3.tgz (3,406 bytes)
    ....done: 3,406 bytes
    downloading Text_Template-1.0.0.tgz ...
    Starting to download Text_Template-1.0.0.tgz (2,493 bytes)
    ...done: 2,493 bytes
    downloading PHP_Timer-1.0.0.tgz ...
    Starting to download PHP_Timer-1.0.0.tgz (2,536 bytes)
    ...done: 2,536 bytes
    downloading PHPUnit_MockObject-1.0.1.tgz ...
    Starting to download PHPUnit_MockObject-1.0.1.tgz (17,277 bytes)
    ...done: 17,277 bytes
    downloading PHPUnit_Selenium-1.0.0.tgz ...
    Starting to download PHPUnit_Selenium-1.0.0.tgz (15,252 bytes)
    ...done: 15,252 bytes
    upgrade ok: channel://pear.phpunit.de/File_Iterator-1.2.3
    upgrade ok: channel://pear.phpunit.de/Text_Template-1.0.0
    upgrade ok: channel://pear.phpunit.de/PHP_Timer-1.0.0
    upgrade ok: channel://pear.phpunit.de/PHPUnit_Selenium-1.0.0
    upgrade ok: channel://pear.phpunit.de/PHPUnit_MockObject-1.0.1

    Helgi:trunk helgi$ pear list-files phpunit/phpunit_mockobject
    Installed Files For phpunit/phpunit_mockobject
    ==============================================
    Type Install Path
    php /usr/lib/php/PHPUnit/Framework/MockObject/Builder/Identity.php
    php
    /usr/lib/php/PHPUnit/Framework/MockObject/Builder/InvocationMocker.php
    php /usr/lib/php/PHPUnit/Framework/MockObject/Builder/Match.php
    php
    /usr/lib/php/PHPUnit/Framework/MockObject/Builder/MethodNameMatch.php
    php /usr/lib/php/PHPUnit/Framework/MockObject/Builder/Namespace.php
    php
    /usr/lib/php/PHPUnit/Framework/MockObject/Builder/ParametersMatch.php
    php /usr/lib/php/PHPUnit/Framework/MockObject/Builder/Stub.php
    php
    /usr/lib/php/PHPUnit/Framework/MockObject/Generator/mocked_class.tpl.dist
    php
    /usr/lib/php/PHPUnit/Framework/MockObject/Generator/mocked_clone.tpl.dist
    php
    /usr/lib/php/PHPUnit/Framework/MockObject/Generator/mocked_object_method.tpl.dist
    php
    /usr/lib/php/PHPUnit/Framework/MockObject/Generator/mocked_static_method.tpl.dist
    php
    /usr/lib/php/PHPUnit/Framework/MockObject/Generator/unmocked_clone.tpl.dist
    php
    /usr/lib/php/PHPUnit/Framework/MockObject/Generator/wsdl_class.tpl.dist
    php
    /usr/lib/php/PHPUnit/Framework/MockObject/Generator/wsdl_method.tpl.dist
    php /usr/lib/php/PHPUnit/Framework/MockObject/Invocation/Object.php
    php /usr/lib/php/PHPUnit/Framework/MockObject/Invocation/Static.php
    php
    /usr/lib/php/PHPUnit/Framework/MockObject/Matcher/AnyInvokedCount.php
    php
    /usr/lib/php/PHPUnit/Framework/MockObject/Matcher/AnyParameters.php
    php /usr/lib/php/PHPUnit/Framework/MockObject/Matcher/Invocation.php
    php
    /usr/lib/php/PHPUnit/Framework/MockObject/Matcher/InvokedAtIndex.php
    php
    /usr/lib/php/PHPUnit/Framework/MockObject/Matcher/InvokedAtLeastOnce.php
    php /usr/lib/php/PHPUnit/Framework/MockObject/Matcher/InvokedCount.php
    php
    /usr/lib/php/PHPUnit/Framework/MockObject/Matcher/InvokedRecorder.php
    php /usr/lib/php/PHPUnit/Framework/MockObject/Matcher/MethodName.php
    php /usr/lib/php/PHPUnit/Framework/MockObject/Matcher/Parameters.php
    php
    /usr/lib/php/PHPUnit/Framework/MockObject/Matcher/StatelessInvocation.php
    php
    /usr/lib/php/PHPUnit/Framework/MockObject/Stub/ConsecutiveCalls.php
    php /usr/lib/php/PHPUnit/Framework/MockObject/Stub/Exception.php
    php
    /usr/lib/php/PHPUnit/Framework/MockObject/Stub/MatcherCollection.php
    php /usr/lib/php/PHPUnit/Framework/MockObject/Stub/Return.php
    php /usr/lib/php/PHPUnit/Framework/MockObject/Stub/ReturnArgument.php
    php /usr/lib/php/PHPUnit/Framework/MockObject/Stub/ReturnCallback.php
    php /usr/lib/php/PHPUnit/Framework/MockObject/Generator.php
    php /usr/lib/php/PHPUnit/Framework/MockObject/InvocationMocker.php
    php /usr/lib/php/PHPUnit/Framework/MockObject/Invocation.php
    php /usr/lib/php/PHPUnit/Framework/MockObject/Invokable.php
    php /usr/lib/php/PHPUnit/Framework/MockObject/Matcher.php
    php /usr/lib/php/PHPUnit/Framework/MockObject/MockBuilder.php
    php /usr/lib/php/PHPUnit/Framework/MockObject/MockObject.php
    php /usr/lib/php/PHPUnit/Framework/MockObject/Stub.php
    php /usr/lib/php/PHPUnit/Framework/MockObject/Verifiable.php


    Helgi:trunk helgi$ tree /usr/lib/php/PHPUnit/Framework/MockObject/
    /usr/lib/php/PHPUnit/Framework/MockObject/
    ??? Builder
    ?   ??? Identity.php
    ?   ??? InvocationMocker.php
    ?   ??? Match.php
    ?   ??? MethodNameMatch.php
    ?   ??? Namespace.php
    ?   ??? ParametersMatch.php
    ?   ??? Stub.php
    ??? Generator
    ?   ??? mocked_class.tpl.dist
    ?   ??? mocked_clone.tpl.dist
    ?   ??? mocked_method.tpl.dist
    ?   ??? mocked_object_method.tpl.dist
    ?   ??? mocked_static_method.tpl.dist
    ?   ??? unmocked_clone.tpl.dist
    ?   ??? wsdl_class.tpl.dist
    ?   ??? wsdl_method.tpl.dist
    ??? Generator.php
    ??? Invocation
    ?   ??? Object.php
    ?   ??? Static.php
    ??? Invocation.php
    ??? InvocationMocker.php
    ??? Invokable.php
    ??? Matcher
    ?   ??? AnyInvokedCount.php
    ?   ??? AnyParameters.php
    ?   ??? Invocation.php
    ?   ??? InvokedAtIndex.php
    ?   ??? InvokedAtLeastOnce.php
    ?   ??? InvokedCount.php
    ?   ??? InvokedRecorder.php
    ?   ??? MethodName.php
    ?   ??? Parameters.php
    ?   ??? StatelessInvocation.php
    ??? Matcher.php
    ??? MockBuilder.php
    ??? MockObject.php
    ??? Stub
    ?   ??? ConsecutiveCalls.php
    ?   ??? Exception.php
    ?   ??? MatcherCollection.php
    ?   ??? Return.php
    ?   ??? ReturnArgument.php
    ?   ??? ReturnCallback.php
    ??? Stub.php
    ??? Verifiable.php

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

    [2010-11-10 01:17:07] dufuz

    -Assigned To:
    +Assigned To: dufuz


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

    [2010-10-23 23:15:02] dufuz

    I will have a look at it but I suspect you might be attempting something
    weird; I have
    successfully split packages up and thus moving a file from package A
    into B.
    File was split into 3 packages: File, File_CSV and File_Utils without
    any problems.

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

    [2010-10-22 09:41:10] sebastian

    Description:
    ------------
    See
    http://sebastian-bergmann.de/archives/899-PHPUnit-3.5-Upgrading-Woes.html
    for details.

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

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedDec 5, '10 at 5:37a
activeDec 7, '10 at 2:39a
posts2
users1
websitepear.php.net

1 user in discussion

Helgith: 2 posts

People

Translate

site design / logo © 2022 Grokbase