X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=tests%2Fskipif.inc;h=4ab631e63d5b9b00b2e1be2c3efe174bfc3791bb;hb=637912166159baa71c9ba73d3d5d7d0773fad7d8;hp=cceeaf077e82820daeea9e84423986ac1524177a;hpb=95c6c900d04096d332c422e3f597186b7184c5ab;p=m6w6%2Fext-http diff --git a/tests/skipif.inc b/tests/skipif.inc index cceeaf0..4ab631e 100644 --- a/tests/skipif.inc +++ b/tests/skipif.inc @@ -21,9 +21,11 @@ function skip_client_test($message = "skip need a client driver\n") { } function skip_http2_test($message = "skip need http2 support (nghttpd in PATH)\n") { - foreach (explode(":", $_ENV["PATH"]) as $path) { - if (is_executable($path . "/nghttpd")) { - return; + if (defined("http\\Client\\Curl\\HTTP_VERSION_2_0")) { + foreach (explode(":", $_ENV["PATH"]) as $path) { + if (is_executable($path . "/nghttpd")) { + return; + } } } die($message);