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