10000 merged branch pborreli/gc_memory (PR #6063) · symfony/symfony@382d580 · GitHub
[go: up one dir, main page]

Skip to content

Commit 382d580

Browse files
committed
merged branch pborreli/gc_memory (PR #6063)
This PR was squashed before being merged into the master branch (closes #6063). Commits ------- d3d8ff4 [travis-ci] Zend Garbage Collection only for PHP5.4 Discussion ---------- [travis-ci] Zend Garbage Collection only for PHP5.4
2 parents 6e8115a + d3d8ff4 commit 382d580

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

.travis.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,3 @@ before_script:
99
- COMPOSER_ROOT_VERSION=dev-master composer --prefer-source --dev install
1010
- php src/Symfony/Component/Locale/Resources/data/build-data.php
1111
- export USE_INTL_ICU_DATA_VERSION=1
12-
13-
script: phpunit -dzend.enable_gc=0

autoload.php.dist

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
<?php
22

3+
if (version_compare(PHP_VERSION, '5.4', '>=') && gc_enabled()) {
4+
// Disabling Zend Garbage Collection to prevent segfaults with PHP5.4+
5+
// https://bugs.php.net/bug.php?id=53976
6+
gc_disable();
7+
}
8+
39
$loader = require_once __DIR__.'/vendor/autoload.php';
410

511
use Doctrine\Common\Annotations\AnnotationRegistry;

phpunit.xml.dist

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
<php>
1515
<ini name="intl.default_locale" value="en"/>
1616
<ini name="intl.error_level" value="0"/>
17+
<ini name="memory_limit" value="-1"/>
1718
</php>
1819

1920
<testsuites>

0 commit comments

Comments
 (0)
0