release 1.7.5
[m6w6/ext-http] / tests / send_ifrange_003.phpt
index 902130f135558422877c1106b822e095020f3f71..226c72f3d251ea068d0185809f7202b98a4f64a7 100644 (file)
@@ -4,11 +4,13 @@ http_send() If-Range
 <?php
 include 'skip.inc';
 checkcgi();
+checkmin("5.2.5");
 ?>
+--ENV--
+HTTP_RANGE=bytes=0-1
+HTTP_IF_RANGE="abcd"
 --FILE--
 <?php
-$_SERVER['HTTP_RANGE'] = 'bytes=0-1';
-$_SERVER['HTTP_IF_RANGE'] = '"abcd"';
 http_cache_etag('abc');
 http_send_file(__FILE__);
 ?>
@@ -20,4 +22,4 @@ Accept-Ranges: bytes
 Content-Length: %d
 Content-type: text/html
 
-%s
+%a