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