projects
/
m6w6
/
ext-http
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
57c887259111cf662d616dc29df821637557e265
[m6w6/ext-http]
/
etag_mode_012.phpt
1
--TEST--
2
ob sha1 etag
3
--SKIPIF--
4
<?php
5
include 'skip.inc';
6
checkcgi();
7
skipif(!http_support(HTTP_SUPPORT_MHASHETAGS), 'need mhash support');
8
?>
9
--FILE--
10
<?php
11
ini_set('http.etag_mode', HTTP_ETAG_SHA1);
12
http_cache_etag();
13
print("abc\n");
14
?>
15
--EXPECTF--
16
Content-type: %s
17
X-Powered-By: PHP/%s
18
Cache-Control: private, must-revalidate, max-age=0
19
ETag: "03cfd743661f07975fa2f1220c5194cbaff48451"
20
21
abc