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 heap instead of stack
[m6w6/ext-http]
/
tests
/
etag_mode_042.phpt
diff --git
a/tests/etag_mode_042.phpt
b/tests/etag_mode_042.phpt
index 68aab73d8c595ebdc5ca04b8f8e9cafba213674b..1d74254079179c7baab0c467b4d60aa2ff2666b9 100644
(file)
--- a/
tests/etag_mode_042.phpt
+++ b/
tests/etag_mode_042.phpt
@@
-4,19
+4,18
@@
ob sha1 etag
<?php
include 'skip.inc';
checkcgi();
<?php
include 'skip.inc';
checkcgi();
-checkmin(5.1);
-skipif(!http_support(HTTP_SUPPORT_MHASHETAGS), 'need mhash support');
+checkmin("5.2.5");
?>
--FILE--
<?php
?>
--FILE--
<?php
-ini_set('http.etag
_mode', HTTP_ETAG_SHA1
);
+ini_set('http.etag
.mode', 'SHA1'
);
http_cache_etag();
print("abc\n");
?>
--EXPECTF--
http_cache_etag();
print("abc\n");
?>
--EXPECTF--
-X-Powered-By: PHP/%
s
+X-Powered-By: PHP/%
a
Cache-Control: private, must-revalidate, max-age=0
ETag: "03cfd743661f07975fa2f1220c5194cbaff48451"
Cache-Control: private, must-revalidate, max-age=0
ETag: "03cfd743661f07975fa2f1220c5194cbaff48451"
-Content-type: %
s
+Content-type: %
a
abc
abc