From: Reedy Date: Wed, 10 Feb 2016 21:23:35 +0000 (+0000) Subject: Remove < PHP 5.4 register_shutdown_function() from phpunit.php X-Git-Tag: 1.31.0-rc.0~8005^2 X-Git-Url: http://git.cyclocoop.org/%24href?a=commitdiff_plain;h=9d19133bad4e468513800e8395a10f42d98e7be2;p=lhc%2Fweb%2Fwiklou.git Remove < PHP 5.4 register_shutdown_function() from phpunit.php Change-Id: Ic4efeca82762b3c50cd2e1b45e43a6f1ef0f5710 --- diff --git a/tests/phpunit/phpunit.php b/tests/phpunit/phpunit.php index 673bb2d7a9..81dc412460 100755 --- a/tests/phpunit/phpunit.php +++ b/tests/phpunit/phpunit.php @@ -254,14 +254,6 @@ class PHPUnitMaintClass extends Maintenance { $maintClass = 'PHPUnitMaintClass'; require RUN_MAINTENANCE_IF_MAIN; -// Prevent segfault when we have lots of unit tests (bug 62623) -if ( version_compare( PHP_VERSION, '5.4.0', '<' ) ) { - register_shutdown_function( function () { - gc_collect_cycles(); - gc_disable(); - } ); -} - $ok = false; if ( class_exists( 'PHPUnit_TextUI_Command' ) ) {