fix segtv with 5_3
[m6w6/ext-http] / tests / HttpResponse_004.phpt
index 4e6d30c2d77198500cff073074918110ebba4770..88b788477954b8ef007b70a713d3bda006597165 100644 (file)
@@ -4,13 +4,14 @@ HttpResponse - send cached gzipped data
 <?php 
 include 'skip.inc';
 checkcgi();
-checkmin(5.1);
+checkmin("5.2.5");
 skipif(!http_support(HTTP_SUPPORT_ENCODINGS), "need zlib support");
 ?>
+--ENV--
+HTTP_IF_NONE_MATCH="900150983cd24fb0d6963f7d28e17f72"
+HTTP_ACCEPT_ENCODING=gzip
 --FILE--
 <?php
-$_SERVER["HTTP_IF_NONE_MATCH"] = '"900150983cd24fb0d6963f7d28e17f72"';
-$_SERVER["HTTP_ACCEPT_ENCODING"] = "gzip";
 HttpResponse::setGzip(true);
 HttpResponse::setCache(true);
 HttpResponse::setCacheControl('public', 3600);
@@ -18,7 +19,7 @@ HttpResponse::setData("abc");
 HttpResponse::send();
 ?>
 --EXPECTF--
-Status: 304
+Status: 304%s
 X-Powered-By: PHP/%s
 Cache-Control: public, must-revalidate, max-age=3600
 Last-Modified: %s