$body = new http\Message\Body;
$body->append("Hello, my old fellow.");
foreach (hash_algos() as $algo) {
- if (strncmp($algo, "sha3-", 5)) {
+ if (strncmp($algo, "sha3-", 5) && strncmp($algo, "sha512/", 7)) {
ini_set("http.etag.mode", $algo);
printf("%10s: %s\n",
$algo,
}
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;