I recently updated packages via PEAR. I don't remember what exactly, but right now I have PHPUnit-3.6.12 PHP_Invoker-1.1.1
When I try to run tests for Translate I get: 1) SpecialPagesTest::testSpecialPage with data set #3 ('LanguageStats')
Fatal error: Call to undefined function php_timer_autoload() in /usr/share/php/PHPUnit/Util/GlobalState.php on line 381 make: *** [default] Error 255
Any ideas?
-Niklas
Le 26/10/12 11:29, Niklas Laxström a écrit :
I recently updated packages via PEAR. I don't remember what exactly, but right now I have PHPUnit-3.6.12 PHP_Invoker-1.1.1
When I try to run tests for Translate I get:
- SpecialPagesTest::testSpecialPage with data set #3 ('LanguageStats')
Fatal error: Call to undefined function php_timer_autoload() in /usr/share/php/PHPUnit/Util/GlobalState.php on line 381 make: *** [default] Error 255
Could you paste all your versions obtained with:
pear list -c phpunit
php_timer_autoload() was defined in PHP_Timer 1.0.3 apparently and got removed in 1.0.4. It seems PHPUnit 3.6 still rely on it so either you have to downgrade PHP_Timer to 1.0.3 or possibly 1.0.2 or upgrade PHPUnit to 3.7.x (recommended).
cheers
Antoine Musso hashar+wmf@free.fr wrote:
I recently updated packages via PEAR. I don't remember what exactly, but right now I have PHPUnit-3.6.12 PHP_Invoker-1.1.1
When I try to run tests for Translate I get:
- SpecialPagesTest::testSpecialPage with data set #3 ('LanguageStats')
Fatal error: Call to undefined function php_timer_autoload() in /usr/share/php/PHPUnit/Util/GlobalState.php on line 381 make: *** [default] Error 255
Could you paste all your versions obtained with:
pear list -c phpunit
php_timer_autoload() was defined in PHP_Timer 1.0.3 apparently and got removed in 1.0.4. It seems PHPUnit 3.6 still rely on it so either you have to downgrade PHP_Timer to 1.0.3 or possibly 1.0.2 or upgrade PHPUnit to 3.7.x (recommended).
All of this shouldn't be necessary, as PHPUnit 3.6.12's package.xml clearly declares a dependency on PHP_Timer
= 1.0.1 and <= 1.0.3. In other words: Whatever Niklas used
for update seems to be broken and should be fixed.
It's not so hard to make PHPUnit 3.6.12 work with all ver- sions of PHP_Timer though; a patch is at http://pkgs.fedoraproject.org/cgit/php-phpunit-PHPUnit.git/commit/?h=f16&....
Tim
On 26 October 2012 15:02, Tim Landscheidt tim@tim-landscheidt.de wrote:
Antoine Musso hashar+wmf@free.fr wrote:
I recently updated packages via PEAR. I don't remember what exactly, but right now I have PHPUnit-3.6.12 PHP_Invoker-1.1.1
When I try to run tests for Translate I get:
- SpecialPagesTest::testSpecialPage with data set #3 ('LanguageStats')
Fatal error: Call to undefined function php_timer_autoload() in /usr/share/php/PHPUnit/Util/GlobalState.php on line 381 make: *** [default] Error 255
Could you paste all your versions obtained with:
pear list -c phpunit
twn:~$ pear list -c phpunit Installed packages, channel pear.phpunit.de: ============================================ Package Version State DbUnit 1.1.2 stable File_Iterator 1.3.2 stable PHPUnit 3.6.12 stable PHPUnit_MockObject 1.1.1 stable PHP_CodeCoverage 1.1.2 stable PHP_Invoker 1.1.1 stable PHP_Timer 1.0.4 stable PHP_TokenStream 1.1.5 stable Text_Template 1.1.2 stable
php_timer_autoload() was defined in PHP_Timer 1.0.3 apparently and got removed in 1.0.4. It seems PHPUnit 3.6 still rely on it so either you have to downgrade PHP_Timer to 1.0.3 or possibly 1.0.2 or upgrade PHPUnit to 3.7.x (recommended).
3.7.x is not marked stable, can I install it just by specifying version number?
All of this shouldn't be necessary, as PHPUnit 3.6.12's package.xml clearly declares a dependency on PHP_Timer
= 1.0.1 and <= 1.0.3. In other words: Whatever Niklas used
for update seems to be broken and should be fixed.
Not too clearly apparently, I had this when installing invoker:
sudo pear install phpunit/PHP_Invoker phpunit/phpunit requires package "phpunit/PHP_Invoker" (version >= 1.1.0, version <= 1.1.1), downloaded version is 1.1.2
Then I installed version 1.1.1.
-Niklas
Niklas Laxström niklas.laxstrom@gmail.com wrote:
[...]
All of this shouldn't be necessary, as PHPUnit 3.6.12's package.xml clearly declares a dependency on PHP_Timer
= 1.0.1 and <= 1.0.3. In other words: Whatever Niklas used
for update seems to be broken and should be fixed.
Not too clearly apparently, I had this when installing invoker:
sudo pear install phpunit/PHP_Invoker phpunit/phpunit requires package "phpunit/PHP_Invoker" (version >= 1.1.0, version <= 1.1.1), downloaded version is 1.1.2
Then I installed version 1.1.1.
Your problem lies (inter alia) with:
| Fatal error: Call to undefined function php_timer_autoload() in ^^^^^^^^^ | /usr/share/php/PHPUnit/Util/GlobalState.php on line 381
Tim
On 26 October 2012 15:57, Tim Landscheidt tim@tim-landscheidt.de wrote:
Niklas Laxström niklas.laxstrom@gmail.com wrote:
[...]
All of this shouldn't be necessary, as PHPUnit 3.6.12's package.xml clearly declares a dependency on PHP_Timer
= 1.0.1 and <= 1.0.3. In other words: Whatever Niklas used
for update seems to be broken and should be fixed.
Not too clearly apparently, I had this when installing invoker:
sudo pear install phpunit/PHP_Invoker phpunit/phpunit requires package "phpunit/PHP_Invoker" (version >= 1.1.0, version <= 1.1.1), downloaded version is 1.1.2
Then I installed version 1.1.1.
Your problem lies (inter alia) with:
| Fatal error: Call to undefined function php_timer_autoload() in ^^^^^^^^^ | /usr/share/php/PHPUnit/Util/GlobalState.php on line 381
Well wrong package, but I get PHP_Timer 1.0.4 nevertheless. I did some uninstalling and installed 1.0.3 first, but then it broke on some other package.
So I got pissed of and uninstalled everything from pear. Now when I try to install phpunit again I get: sudo pear install --alldeps phpunit/phpunit Duplicate package channel://pear.phpunit.de/File_Iterator-1.3.3 found Duplicate package channel://pear.phpunit.de/File_Iterator-1.3.2 found install failed
-Niklas
wikitech-l@lists.wikimedia.org