- extend & fixup test suite
[m6w6/ext-http] / tests / etag_mode_034.phpt
1 --TEST--
2 mhash 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 skipif(!defined('HTTP_ETAG_MHASH_WHIRLPOOL'), 'need whirlpool mhash support');
10 ?>
11 --FILE--
12 <?php
13 ini_set('http.etag_mode', HTTP_ETAG_MHASH_WHIRLPOOL);
14 http_cache_etag();
15 http_send_data("abc\n");
16 ?>
17 --EXPECTF--
18 Content-type: %s
19 X-Powered-By: PHP/%s
20 Cache-Control: private, must-revalidate, max-age=0
21 Accept-Ranges: bytes
22 ETag: "53efa9e423f86dabd449b3e23dd0350def661b9e7055b23ceb2230c8b61bc0766514957ea9d349a88ef794715a1a17a409b549edfd6f43d696e63407fff3541c"
23 Content-Length: 4
24
25 abc