From 478710f984bb2dc365900a702e46714bcb72caf2 Mon Sep 17 00:00:00 2001 From: Nicolas Grekas Date: Wed, 6 Jan 2016 07:53:30 +0100 Subject: [PATCH] [PhpUnitBridge] Re-enable the garbage collector --- src/Symfony/Bridge/PhpUnit/README.md | 1 - src/Symfony/Bridge/PhpUnit/bootstrap.php | 6 ------ 2 files changed, 7 deletions(-) diff --git a/src/Symfony/Bridge/PhpUnit/README.md b/src/Symfony/Bridge/PhpUnit/README.md index 7b3a7ef677..c36f9b5335 100644 --- a/src/Symfony/Bridge/PhpUnit/README.md +++ b/src/Symfony/Bridge/PhpUnit/README.md @@ -5,7 +5,6 @@ Provides utilities for PHPUnit, especially user deprecation notices management. It comes with the following features: - * disable the garbage collector; * enforce a consistent `C` locale; * auto-register `class_exists` to load Doctrine annotations; * print a user deprecation notices summary at the end of the test suite. diff --git a/src/Symfony/Bridge/PhpUnit/bootstrap.php b/src/Symfony/Bridge/PhpUnit/bootstrap.php index e5b1a1a2c4..bb98a92961 100644 --- a/src/Symfony/Bridge/PhpUnit/bootstrap.php +++ b/src/Symfony/Bridge/PhpUnit/bootstrap.php @@ -17,12 +17,6 @@ if (!defined('PHPUNIT_COMPOSER_INSTALL') && !class_exists('PHPUnit_TextUI_Comman return; } -if (PHP_VERSION_ID >= 50400 && gc_enabled()) { - // Disabling Zend Garbage Collection to prevent segfaults with PHP5.4+ - // https://bugs.php.net/bug.php?id=53976 - gc_disable(); -} - // Enforce a consistent locale setlocale(LC_ALL, 'C');