7 skipif(!http_support(HTTP_SUPPORT_MHASHETAGS), 'need mhash support');
8 skipif(!defined('HTTP_ETAG_MHASH_CRC32'), 'need CRC32 mhash support');
9 skipif(!defined('HTTP_ETAG_MHASH_CRC32B'), 'need CRC32B mhash support');
15 ini_set('http.etag_mode', HTTP_ETAG_CRC32);
16 HttpResponse::setData("abc");
17 $php = HttpResponse::getEtag();
19 ini_set('http.etag_mode', HTTP_ETAG_MHASH_CRC32);
20 HttpResponse::setData("abc");
21 $crc = HttpResponse::getEtag();
23 ini_set('http.etag_mode', HTTP_ETAG_MHASH_CRC32B);
24 HttpResponse::setData("abc");
25 $equ = HttpResponse::getEtag();
27 echo $php,"\n", $equ,"\n", $crc,"\n";
29 var_dump($equ === $php);
30 var_dump($equ !== $crc);