- add preliminary ext/hash support (currently only for Win32)
[m6w6/ext-http] / tests / etag_mode_005.phpt
1 --TEST--
2 ext/hash etag
3 --SKIPIF--
4 <?php
5 include 'skip.inc';
6 checkcgi();
7 checkmax(5.0);
8 skipif(!defined('HTTP_ETAG_SHA256'), 'need ext/hash support');
9 ?>
10 --FILE--
11 <?php
12 ini_set('http.etag_mode', HTTP_ETAG_SHA256);
13 http_cache_etag();
14 http_send_data("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 Accept-Ranges: bytes
21 ETag: "edeaaff3f1774ad2888673770c6d64097e391bc362d7d6fb34982ddf0efd18cb"
22 Content-Length: 4
23
24 abc