c7c3e102720af0f851549c6c945456a40a3eb0d4
[m6w6/ext-http] / tests / etag_mode_044.phpt
1 --TEST--
2 ob mhash etag
3 --SKIPIF--
4 <?php
5 include 'skip.inc';
6 checkcgi();
7 checkmin(5.1);
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 print("abc\n");
16 ?>
17 --EXPECTF--
18 X-Powered-By: PHP/%s
19 Cache-Control: private, must-revalidate, max-age=0
20 ETag: "53efa9e423f86dabd449b3e23dd0350def661b9e7055b23ceb2230c8b61bc0766514957ea9d349a88ef794715a1a17a409b549edfd6f43d696e63407fff3541c"
21 Content-type: %s
22
23 abc