suppress new PHP-7.4 notice about failed stream_write
[m6w6/ext-http] / scripts / gen_travis_yml.php
index 2cad77a92e4c241615684ca599485eaebb978b21..f393bbcd68322d223a09e39b33f29ee600b6a55e 100755 (executable)
@@ -30,7 +30,7 @@ $gen = include "./travis/pecl/gen-matrix.php";
 $cur = "7.3";
 $env = $gen([
 // most useful for all additional versions except current
-       "PHP" => ["7.0", "7.1", "7.2", "master"],
+       "PHP" => ["7.0", "7.1", "7.2", "7.4", "master"],
        "enable_debug" => "yes",
        "enable_maintainer_zts" => "yes",
        "enable_json" => "yes",
@@ -83,7 +83,7 @@ matrix:
  allow_failures:
 <?php
 $allow_failures = array_merge( ... array_map(function($a) {
-       return preg_grep('/^PHP=master /', $a);
+       return preg_grep('/^PHP=(master|7.4) /', $a);
 }, $env));
 foreach ($allow_failures as $e) {
        printf("  - env: %s\n", $e);