Bug 869367 - Missing dependency on php-phpunit-File-Iterator >= 1.3.0 and <= 1.3.2/upgrade to 3.6.12
Summary: Missing dependency on php-phpunit-File-Iterator >= 1.3.0 and <= 1.3.2/upgrade...
Alias: None
Product: Fedora
Classification: Fedora
Component: php-phpunit-PHPUnit
Version: 16
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
Assignee: Remi Collet
QA Contact: Fedora Extras Quality Assurance
Depends On:
TreeView+ depends on / blocked
Reported: 2012-10-23 17:22 UTC by Tim Landscheidt
Modified: 2012-12-13 07:22 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2012-12-13 07:22:03 UTC
Type: Bug

Attachments (Terms of Use)
Patch for spec file. (1.01 KB, patch)
2012-10-23 21:35 UTC, Tim Landscheidt
no flags Details | Diff
Patch to backport autoloader. (2.76 KB, patch)
2012-10-23 21:37 UTC, Tim Landscheidt
no flags Details | Diff

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):


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.

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.

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.

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.

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:
then log in and leave karma (feedback).

Note You need to log in before you can comment on or make changes to this bug.