Skip to content
This repository
Browse code

[travis-ci] Zend Garbage Collection only for PHP5.4

  • Loading branch information...
commit d3d8ff4ff06b66d2574f8b5e17cf0a571d02914b 1 parent 4860e75
Pascal Borreli pborreli authored fabpot committed

Showing 3 changed files with 7 additions and 2 deletions. Show diff stats Hide diff stats

  1. +0 2  .travis.yml
  2. +6 0 autoload.php.dist
  3. +1 0  phpunit.xml.dist
2  .travis.yml
@@ -9,5 +9,3 @@ before_script:
9 9 - COMPOSER_ROOT_VERSION=dev-master composer --prefer-source --dev install
10 10 - php src/Symfony/Component/Locale/Resources/data/build-data.php
11 11 - export USE_INTL_ICU_DATA_VERSION=1
12   -
13   -script: phpunit -dzend.enable_gc=0
6 autoload.php.dist
... ... @@ -1,5 +1,11 @@
1 1 <?php
2 2
  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 +
3 9 $loader = require_once __DIR__.'/vendor/autoload.php';
4 10
5 11 use Doctrine\Common\Annotations\AnnotationRegistry;
1  phpunit.xml.dist
@@ -14,6 +14,7 @@
14 14 <php>
15 15 <ini name="intl.default_locale" value="en"/>
16 16 <ini name="intl.error_level" value="0"/>
  17 + <ini name="memory_limit" value="-1"/>
17 18 </php>
18 19
19 20 <testsuites>

0 comments on commit d3d8ff4

Please sign in to comment.
Something went wrong with that request. Please try again.