[travis-ci] Zend Garbage Collection only for PHP5.4
This commit is contained in:
parent
4860e7510b
commit
d3d8ff4ff0
@ -9,5 +9,3 @@ before_script:
|
|||||||
- COMPOSER_ROOT_VERSION=dev-master composer --prefer-source --dev install
|
- COMPOSER_ROOT_VERSION=dev-master composer --prefer-source --dev install
|
||||||
- php src/Symfony/Component/Locale/Resources/data/build-data.php
|
- php src/Symfony/Component/Locale/Resources/data/build-data.php
|
||||||
- export USE_INTL_ICU_DATA_VERSION=1
|
- export USE_INTL_ICU_DATA_VERSION=1
|
||||||
|
|
||||||
script: phpunit -dzend.enable_gc=0
|
|
||||||
|
@ -1,5 +1,11 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
if (version_compare(PHP_VERSION, '5.4', '>=') && gc_enabled()) {
|
||||||
|
// Disabling Zend Garbage Collection to prevent segfaults with PHP5.4+
|
||||||
|
// https://bugs.php.net/bug.php?id=53976
|
||||||
|
gc_disable();
|
||||||
|
}
|
||||||
|
|
||||||
$loader = require_once __DIR__.'/vendor/autoload.php';
|
$loader = require_once __DIR__.'/vendor/autoload.php';
|
||||||
|
|
||||||
use Doctrine\Common\Annotations\AnnotationRegistry;
|
use Doctrine\Common\Annotations\AnnotationRegistry;
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
<php>
|
<php>
|
||||||
<ini name="intl.default_locale" value="en"/>
|
<ini name="intl.default_locale" value="en"/>
|
||||||
<ini name="intl.error_level" value="0"/>
|
<ini name="intl.error_level" value="0"/>
|
||||||
|
<ini name="memory_limit" value="-1"/>
|
||||||
</php>
|
</php>
|
||||||
|
|
||||||
<testsuites>
|
<testsuites>
|
||||||
|
Reference in New Issue
Block a user