From 9d19133bad4e468513800e8395a10f42d98e7be2 Mon Sep 17 00:00:00 2001 From: Reedy Date: Wed, 10 Feb 2016 21:23:35 +0000 Subject: [PATCH] Remove < PHP 5.4 register_shutdown_function() from phpunit.php Change-Id: Ic4efeca82762b3c50cd2e1b45e43a6f1ef0f5710 --- tests/phpunit/phpunit.php | 8 -------- 1 file changed, 8 deletions(-) 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' ) ) { -- 2.20.1