- fix previous commit and adjust tests
[m6w6/ext-http] / tests / etag_mode_004.phpt
1 --TEST--
2 mhash etag
3 --SKIPIF--
4 <?php
5 include 'skip.inc';
6 checkcgi();
7 ?>
8 --FILE--
9 <?php
10 ini_set('http.etag_mode', HTTP_ETAG_MHASH_WHIRLPOOL);
11 http_cache_etag();
12 http_send_data("abc\n");
13 ?>
14 --EXPECTF--
15 Content-type: %s
16 X-Powered-By: PHP/%s
17 Cache-Control: private, must-revalidate, max-age=0
18 Accept-Ranges: bytes
19 ETag: "53efa9e423f86dabd449b3e23dd0350def661b9e7055b23ceb2230c8b61bc0766514957ea9d349a88ef794715a1a17a409b549edfd6f43d696e63407fff3541c"
20 Content-Length: 4
21
22 abc