5.3->5.2.5
[m6w6/ext-http] / tests / etag_mode_034.phpt
1 --TEST--
2 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 http_send_data("abc\n");
15 ?>
16 --EXPECTF--
17 X-Powered-By: PHP/%a
18 Cache-Control: private, must-revalidate, max-age=0
19 Accept-Ranges: bytes
20 ETag: "edeaaff3f1774ad2888673770c6d64097e391bc362d7d6fb34982ddf0efd18cb"
21 Content-Length: 4
22 Content-type: %a
23
24 abc