release 1.7.5
[m6w6/ext-http] / tests / etag_mode_041.phpt
index 1a6a2ff2728b0634d6b25f9bed50101347bad162..0834ede6e139cf5f89cfe8d6039c90508063a02e 100644 (file)
@@ -1,21 +1,21 @@
 --TEST--
-ob crc32 etag
+ob crc32 etag (may fail because PHPs crc32 is actually crc32b)
 --SKIPIF--
 <?php
 include 'skip.inc';
 checkcgi();
-checkmin(5.1);
+checkmin("5.2.5");
 ?>
 --FILE--
 <?php
-ini_set('http.etag_mode', 'crc32');
+ini_set('http.etag.mode', extension_loaded('hash')?'crc32b':'crc32');
 http_cache_etag();
 print("abc\n");
 ?>
 --EXPECTF--
-X-Powered-By: PHP/%s
+X-Powered-By: PHP/%a
 Cache-Control: private, must-revalidate, max-age=0
 ETag: "4e818847"
-Content-type: %s
+Content-type: %a
 
 abc