- Fixed build on php-trunk
[m6w6/ext-http] / tests / HttpResponse_003.phpt
index 027d536c9f0443ede52bdf996b5848d6d28ea9dc..e128865e9235d145af65e01347c412041c2e5d74 100644 (file)
@@ -3,9 +3,9 @@ HttpResponse - send gzipped file with caching headers
 --SKIPIF--
 <?php 
 include 'skip.inc';
-checkver(5);
+checkmin("5.2.5");
 checkcgi();
-checkext('zlib');
+skipif(!http_support(HTTP_SUPPORT_ENCODINGS), "need zlib support");
 ?>
 --ENV--
 HTTP_ACCEPT_ENCODING=gzip
@@ -18,13 +18,13 @@ HttpResponse::setFile(__FILE__);
 HttpResponse::send();
 ?>
 --EXPECTF--
-X-Powered-By: PHP/5.1.0RC2-dev
-ETag: "%s"
-Cache-Control: public, must-revalidate, max_age=3600
-Last-Modified: %s, %d %s 20%d %d:%d:%d GMT
-Content-Type: %s
+X-Powered-By: PHP/%a
+Cache-Control: public, must-revalidate, max-age=3600
+Last-Modified: %a, %d %a 20%d %d:%d:%d GMT
+Content-Type: %a
 Accept-Ranges: bytes
+ETag: "%a"
 Content-Encoding: gzip
 Vary: Accept-Encoding
 
-%s
+%a