X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=tests%2Fskipif.inc;fp=tests%2Fskipif.inc;h=4ab631e63d5b9b00b2e1be2c3efe174bfc3791bb;hp=cceeaf077e82820daeea9e84423986ac1524177a;hb=5016399a1e84ca8d23fa74934300e703155e586b;hpb=eafbe5359bfb82233e5591147dc589cb957562c6 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);