[PhpUnitBridge] Re-enable the garbage collector
This commit is contained in:
parent
fff265d451
commit
478710f984
@ -5,7 +5,6 @@ Provides utilities for PHPUnit, especially user deprecation notices management.
|
|||||||
|
|
||||||
It comes with the following features:
|
It comes with the following features:
|
||||||
|
|
||||||
* disable the garbage collector;
|
|
||||||
* enforce a consistent `C` locale;
|
* enforce a consistent `C` locale;
|
||||||
* auto-register `class_exists` to load Doctrine annotations;
|
* auto-register `class_exists` to load Doctrine annotations;
|
||||||
* print a user deprecation notices summary at the end of the test suite.
|
* print a user deprecation notices summary at the end of the test suite.
|
||||||
|
@ -17,12 +17,6 @@ if (!defined('PHPUNIT_COMPOSER_INSTALL') && !class_exists('PHPUnit_TextUI_Comman
|
|||||||
return;
|
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
|
// Enforce a consistent locale
|
||||||
setlocale(LC_ALL, 'C');
|
setlocale(LC_ALL, 'C');
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user