Red Hat Bugzilla – Bug 869367
Missing dependency on php-phpunit-File-Iterator >= 1.3.0 and <= 1.3.2/upgrade to 3.6.12
Last modified: 2012-12-13 02:22:03 EST
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):
Need to find the better solution...
According to File_Iterator changelog:
* No changes.
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)
I will also cancel the update of php-phpunit-Text-Template and php-phpunit-PHP-Invoker (in fedora 18)
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.
Created attachment 632403 [details]
Patch for spec file.
Created attachment 632404 [details]
Patch to backport autoloader.
I will fix this issue in PHPUnit (build pending)
php-phpunit-PHPUnit-3.6.12-2.fc18 has been submitted as an update for Fedora 18.
php-phpunit-PHPUnit-3.6.12-2.fc17 has been submitted as an update for Fedora 17.
php-phpunit-PHPUnit-3.6.12-2.fc16 has been submitted as an update for Fedora 16.
php-phpunit-PHPUnit-3.6.12-2.el6 has been submitted as an update for Fedora EPEL 6.
Merci bien, seems to work for me very well.
* 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).