upgrade test suite to 5.3
[m6w6/ext-http] / tests / etag_mode_041.phpt
index 3e15bc14df29f44b7b34e62fcf33e8d6ec2f159a..e1f8a5f850e0ef2f1da5fc1072d340568716938a 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.3);
 ?>
 --FILE--
 <?php
-ini_set('http.etag_mode', HTTP_ETAG_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