branch off v1 as R_1_7
[m6w6/ext-http] / tests / etag_mode_044.phpt
1 --TEST--
2 ob ext/hash etag
3 --SKIPIF--
4 <?php
5 include 'skip.inc';
6 checkcgi();
7 checkmin("5.2.5");
8 skipif(!extension_loaded('hash'), 'need ext/hash support');
9 ?>
10 --FILE--
11 <?php
12 ini_set('http.etag.mode', 'sha256');
13 http_cache_etag();
14 print("abc\n");
15 ?>
16 --EXPECTF--
17 X-Powered-By: PHP/%a
18 Cache-Control: private, must-revalidate, max-age=0
19 ETag: "edeaaff3f1774ad2888673770c6d64097e391bc362d7d6fb34982ddf0efd18cb"
20 Content-type: %a
21
22 abc