projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
break on timeout
[m6w6/ext-http]
/
tests
/
etag001.phpt
diff --git
a/tests/etag001.phpt
b/tests/etag001.phpt
index 77659d3becbaa581d3bdc923aae19a751b18fe37..c1e1e44c897a92587198dcab8fd16bb1bf156703 100644
(file)
--- a/
tests/etag001.phpt
+++ b/
tests/etag001.phpt
@@
-1,12
+1,22
@@
--TEST--
etags with hash
--SKIPIF--
--TEST--
etags with hash
--SKIPIF--
-<?php include "skipif.inc"; _ext("hash"); ?>
+<?php
+include "skipif.inc";
+_ext("hash");
+version_compare(PHP_VERSION, "5.4.0", ">=") or die("skip PHP>=5.4 required");
+?>
--FILE--
<?php
$body = new http\Message\Body;
$body->append("Hello, my old fellow.");
foreach (hash_algos() as $algo) {
--FILE--
<?php
$body = new http\Message\Body;
$body->append("Hello, my old fellow.");
foreach (hash_algos() as $algo) {
+ switch ($algo) {
+ case "gost-crypto":
+ case "fnv1a32":
+ case "fnv1a64":
+ continue 2;
+ }
ini_set("http.etag.mode", $algo);
printf("%10s: %s\n",
$algo,
ini_set("http.etag.mode", $algo);
printf("%10s: %s\n",
$algo,