}
function skip_http2_test($message = "skip need http2 support (nghttpd in PATH)\n") {
- if (defined("http\\Client\\Curl\\HTTP_VERSION_2_0")) {
+ if (defined("http\\Client\\Curl\\HTTP_VERSION_2_0")
+ && (http\Client\Curl\FEATURES & http\Client\Curl\Features\HTTP2)) {
foreach (explode(":", $_ENV["PATH"]) as $path) {
if (is_executable($path . "/nghttpd")) {
return;