Bug 869367

Summary: Missing dependency on php-phpunit-File-Iterator >= 1.3.0 and <= 1.3.2/upgrade to 3.6.12
Product: [Fedora] Fedora Reporter: Tim Landscheidt <tim>
Component: php-phpunit-PHPUnitAssignee: Remi Collet <fedora>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 16CC: christof, fedora, jon.dufresne
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-12-13 07:22:03 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Patch for spec file.
none
Patch to backport autoloader. none

Description Tim Landscheidt 2012-10-23 17:22:33 UTC
The recent upgrade of php-phpunit-File-Iterator to 1.3.3 causes PHPUnit 3.6.11 to emit warnings:

| PHP Fatal error:  Call to undefined function file_iterator_autoload() in /usr/share/pear/PHPUnit/Util/GlobalState.php on line 379

Apparently, File-Iterator 1.3.3 is meant for use with PHPUnit 3.7 only, and so the recommended "fix" (probably needs more quotation marks) inspired by https://github.com/sebastianbergmann/phpunit/issues/683 would be to change the requirements according to 3.6.12's package.xml.  An upgrade to 3.7 would probably solve this issue as well of course (and I don't know what Fedora's policies propose for such "update to x+1 is available, but x is required by Y" situations).  Another solution might be to revert the change from 1.3.2 to 1.3.3 on Fedora.

Workaround for fellow users is to downgrade to php-phpunit-File-Iterator 1.3.2 of course.


Version-Release number of selected component (if applicable):

php-phpunit-PHPUnit-3.6.11-1.fc16.noarch
php-phpunit-File-Iterator-1.3.3-1.fc16.noarch

Comment 1 Remi Collet 2012-10-23 17:43:34 UTC
Need to find the better solution...

According to File_Iterator changelog:

* No changes.

Funny ?

Analysis of the diff between 1.3.2 and 1.3.3, mostly file_iterator_autoload which is now a anonymous function.

We probably need to revert this change...


I don't plan an upgrade to PHPUnit 3.7.x for now (will require Symfony 2.1 stack)

Comment 2 Remi Collet 2012-10-23 17:49:01 UTC
I will also cancel the update of php-phpunit-Text-Template and php-phpunit-PHP-Invoker (in fedora 18)

Comment 3 Tim Landscheidt 2012-10-23 19:29:44 UTC
Thanks.  This problem also occurs for php_timer_autoload() & Co., so whatever solution is chosen for php-phpunit-File-Iterator needs to be ported to php-phpunit-PHP-Timer & Co. as well.

Comment 4 Tim Landscheidt 2012-10-23 21:35:55 UTC
Created attachment 632403 [details]
Patch for spec file.

Comment 5 Tim Landscheidt 2012-10-23 21:37:11 UTC
Created attachment 632404 [details]
Patch to backport autoloader.

Comment 6 Remi Collet 2012-10-24 05:51:30 UTC
I will fix this issue in PHPUnit (build pending)

Comment 7 Fedora Update System 2012-10-24 06:34:25 UTC
php-phpunit-PHPUnit-3.6.12-2.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/php-phpunit-PHPUnit-3.6.12-2.fc18

Comment 8 Fedora Update System 2012-10-24 06:35:14 UTC
php-phpunit-PHPUnit-3.6.12-2.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/php-phpunit-PHPUnit-3.6.12-2.fc17

Comment 9 Fedora Update System 2012-10-24 06:35:53 UTC
php-phpunit-PHPUnit-3.6.12-2.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/php-phpunit-PHPUnit-3.6.12-2.fc16

Comment 10 Fedora Update System 2012-10-24 06:39:50 UTC
php-phpunit-PHPUnit-3.6.12-2.el6 has been submitted as an update for Fedora EPEL 6.
https://admin.fedoraproject.org/updates/php-phpunit-PHPUnit-3.6.12-2.el6

Comment 11 Tim Landscheidt 2012-10-24 12:15:12 UTC
Merci bien, seems to work for me very well.

Comment 12 Fedora Update System 2012-10-24 14:31:16 UTC
Package php-phpunit-PHPUnit-3.6.12-2.el6:
* should fix your issue,
* was pushed to the Fedora EPEL 6 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=epel-testing php-phpunit-PHPUnit-3.6.12-2.el6'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-EPEL-2012-13277/php-phpunit-PHPUnit-3.6.12-2.el6
then log in and leave karma (feedback).