- drop mhash support
[m6w6/ext-http] / tests / etag_mode_044.phpt
index c7c3e102720af0f851549c6c945456a40a3eb0d4..5f69d4bd921248d8fed86cc003e9880f9f0bf1f4 100644 (file)
@@ -1,23 +1,22 @@
 --TEST--
-ob mhash etag
+ob ext/hash etag
 --SKIPIF--
 <?php
 include 'skip.inc';
 checkcgi();
 checkmin(5.1);
-skipif(!http_support(HTTP_SUPPORT_MHASHETAGS), 'need mhash support');
-skipif(!defined('HTTP_ETAG_MHASH_WHIRLPOOL'), 'need whirlpool mhash support');
+skipif(!extendion_loaded('hash'), 'need mhash support');
 ?>
 --FILE--
 <?php
-ini_set('http.etag_mode', HTTP_ETAG_MHASH_WHIRLPOOL);
+ini_set('http.etag_mode', 'sha256');
 http_cache_etag();
 print("abc\n");
 ?>
 --EXPECTF--
 X-Powered-By: PHP/%s
 Cache-Control: private, must-revalidate, max-age=0
-ETag: "53efa9e423f86dabd449b3e23dd0350def661b9e7055b23ceb2230c8b61bc0766514957ea9d349a88ef794715a1a17a409b549edfd6f43d696e63407fff3541c"
+ETag: "edeaaff3f1774ad2888673770c6d64097e391bc362d7d6fb34982ddf0efd18cb"
 Content-type: %s
 
 abc