8000 bug #17275 [PhpUnitBridge] Re-enable the garbage collector (nicolas-g… · symfony/symfony@21427de · GitHub
[go: up one dir, main page]

Skip to content

Commit 21427de

Browse files
bug #17275 [PhpUnitBridge] Re-enable the garbage collector (nicolas-grekas)
This PR was merged into the 2.7 branch. Discussion ---------- [PhpUnitBridge] Re-enable the garbage collector | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #17268, #11566 | License | MIT | Doc PR | - The bug is fixed in PHP and disabling the gc causes issues elsewhere. Commits ------- 478710f [PhpUnitBridge] Re-enable the garbage collector
2 parents fff265d + 478710f commit 21427de

File tree

2 files changed

+0
-7
lines changed

2 files changed

+0
-7
lines changed

src/Symfony/Bridge/PhpUnit/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ Provides utilities for PHPUnit, especially user deprecation notices management.
55

66
It comes with the following features:
77

8-
* disable the garbage collector;
98
* enforce a consistent `C` locale;
109
* auto-register `class_exists` to load Doctrine annotations;
1110
* print a user deprecation notices summary at the end of the test suite.

src/Symfony/Bridge/PhpUnit/bootstrap.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,6 @@
1717
return;
1818
}
1919

20-
if (PHP_VERSION_ID >= 50400 && gc_enabled()) {
21-
// Disabling Zend Garbage Collection to prevent segfaults with PHP5.4+
22-
// https://bugs.php.net/bug.php?id=53976
23-
gc_disable();
24-
}
25-
2620
// Enforce a consistent locale
2721
setlocale(LC_ALL, 'C');
2822

0 commit comments

Comments
 (0)
0