Remove < PHP 5.4 register_shutdown_function() from phpunit.php
authorReedy <reedy@wikimedia.org>
Wed, 10 Feb 2016 21:23:35 +0000 (21:23 +0000)
committerReedy <reedy@wikimedia.org>
Wed, 10 Feb 2016 22:06:45 +0000 (22:06 +0000)
Change-Id: Ic4efeca82762b3c50cd2e1b45e43a6f1ef0f5710

tests/phpunit/phpunit.php

index 673bb2d..81dc412 100755 (executable)
@@ -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' ) ) {