- fix issues ifndef HTTP_HAVE_CURL
[m6w6/ext-http] / tests / etag_mode_004.phpt
1 --TEST--
2 mhash etag
3 --SKIPIF--
4 <?php
5 include 'skip.inc';
6 checkcgi();
7 skipif(!http_support(HTTP_SUPPORT_MHASHETAGS), 'need mhash support');
8 skipif(!defined('HTTP_ETAG_MHASH_WHIRLPOOL'), 'need whirlpool mhash support');
9 ?>
10 --FILE--
11 <?php
12 ini_set('http.etag_mode', HTTP_ETAG_MHASH_WHIRLPOOL);
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: "53efa9e423f86dabd449b3e23dd0350def661b9e7055b23ceb2230c8b61bc0766514957ea9d349a88ef794715a1a17a409b549edfd6f43d696e63407fff3541c"
22 Content-Length: 4
23
24 abc