From 1d5e657cbee4d5f1fd0af718fea14547e4f77012 Mon Sep 17 00:00:00 2001
From: Andreas Gohr <gohr@cosmocode.de>
Date: Wed, 30 Nov 2016 16:38:44 +0100
Subject: [PATCH] do not try to disable functions on hhvm

this is not supported, yet: https://github.com/facebook/hhvm/issues/2745
---
 .travis.yml | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/.travis.yml b/.travis.yml
index 17792699c..368b237fd 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -15,6 +15,9 @@ matrix:
   allow_failures:
     - php: "hhvm"
     - php: "7.1"
+  exclude:
+    - php: "hhvm"
+      env: DISABLE_FUNCTIONS="gzopen"
 notifications:
   irc:
     channels:
@@ -25,7 +28,7 @@ services:
   - "mysql"
   - "postgresql"
 before_script:
-  - echo "disable_functions=$DISABLE_FUNCTIONS" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
+  - [ -z "$DISABLE_FUNCTIONS" ] || echo "disable_functions=$DISABLE_FUNCTIONS" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
   - cp _test/mysql.conf.php.dist _test/mysql.conf.php
   - cp _test/pgsql.conf.php.dist _test/pgsql.conf.php
 script: cd _test && phpunit --verbose --stderr
-- 
GitLab