also ignore crc32c which is 7.4+ only
authorRemi Collet <remi@remirepo.net>
Thu, 6 Jun 2019 12:27:37 +0000 (14:27 +0200)
committerRemi Collet <remi@remirepo.net>
Thu, 6 Jun 2019 12:27:37 +0000 (14:27 +0200)
tests/etag001.phpt

index e5e3d4a84cc97d56a0891029f530be1e01e7c197..a7afd14fccd48b757dfea6f5a4a420a537d948ea 100644 (file)
@@ -10,7 +10,7 @@ _ext("hash");
 $body = new http\Message\Body;
 $body->append("Hello, my old fellow.");
 foreach (hash_algos() as $algo) {
 $body = new http\Message\Body;
 $body->append("Hello, my old fellow.");
 foreach (hash_algos() as $algo) {
-    if (strncmp($algo, "sha3-", 5) && strncmp($algo, "sha512/", 7)) {
+    if (strncmp($algo, "sha3-", 5) && strncmp($algo, "sha512/", 7) && strcmp($algo, "crc32c")) {
         ini_set("http.etag.mode", $algo);
         printf("%10s: %s\n",
             $algo,
         ini_set("http.etag.mode", $algo);
         printf("%10s: %s\n",
             $algo,