projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
- use way less memory by not duplicating response headers and bodies
[m6w6/ext-http]
/
tests
/
etag_mode_014.phpt
diff --git
a/tests/etag_mode_014.phpt
b/tests/etag_mode_014.phpt
index 6999bff2f3855a40bc5a939bc04bfd40fa1455a6..bcdefcae9733c38cec064e6c846b10829ea1ed03 100644
(file)
--- a/
tests/etag_mode_014.phpt
+++ b/
tests/etag_mode_014.phpt
@@
-1,15
+1,15
@@
--TEST--
--TEST--
-ob
m
hash etag
+ob
ext/
hash etag
--SKIPIF--
<?php
include 'skip.inc';
checkcgi();
--SKIPIF--
<?php
include 'skip.inc';
checkcgi();
-
skipif(!http_support(HTTP_SUPPORT_MHASHETAGS), 'need mhash support'
);
-skipif(!
defined('HTTP_ETAG_MHASH_WHIRLPOOL'), 'need whirlpool m
hash support');
+
checkmax(5.0
);
+skipif(!
extension_loaded('hash'), 'need ext/
hash support');
?>
--FILE--
<?php
?>
--FILE--
<?php
-ini_set('http.etag
_mode', HTTP_ETAG_MHASH_WHIRLPOOL
);
+ini_set('http.etag
.mode', 'sha256'
);
http_cache_etag();
print("abc\n");
?>
http_cache_etag();
print("abc\n");
?>
@@
-17,6
+17,6
@@
print("abc\n");
Content-type: %s
X-Powered-By: PHP/%s
Cache-Control: private, must-revalidate, max-age=0
Content-type: %s
X-Powered-By: PHP/%s
Cache-Control: private, must-revalidate, max-age=0
-ETag: "
53efa9e423f86dabd449b3e23dd0350def661b9e7055b23ceb2230c8b61bc0766514957ea9d349a88ef794715a1a17a409b549edfd6f43d696e63407fff3541c
"
+ETag: "
edeaaff3f1774ad2888673770c6d64097e391bc362d7d6fb34982ddf0efd18cb
"
abc
abc