43a0c1a15904e9f98fd8d4ca4a5c1fdb427f7fad
[m6w6/ext-http] / tests / etag_mode_031.phpt
1 --TEST--
2 crc32 etag (may fail because PHPs crc32 is actually crc32b)
3 --SKIPIF--
4 <?php
5 include 'skip.inc';
6 checkcgi();
7 checkmin(5.3);
8 ?>
9 --FILE--
10 <?php
11 ini_set('http.etag.mode', extension_loaded('hash')?'crc32b':'crc32');
12 http_cache_etag();
13 http_send_data("abc\n");
14 ?>
15 --EXPECTF--
16 X-Powered-By: PHP/%a
17 Cache-Control: private, must-revalidate, max-age=0
18 Accept-Ranges: bytes
19 ETag: "4e818847"
20 Content-Length: 4
21 Content-type: %a
22
23 abc