- extend & fixup test suite
[m6w6/ext-http] / tests / send_file_002.phpt
index 5abf11878b53427d07ec3fee7d8351aca0f552a5..1bcd07d70b6e2ee3ce6871e3971f9d2737ebedb4 100644 (file)
@@ -3,6 +3,8 @@ http_send_file() NUM-NUM range
 --SKIPIF--
 <?php 
 include 'skip.inc';
+checkcgi();
+checkmax(5.0);
 ?>
 --ENV--
 HTTP_RANGE=bytes=5-9
@@ -12,9 +14,10 @@ http_send_file('data.txt');
 ?>
 --EXPECTF--
 Status: 206
-Content-type: text/html
+Content-type: %s
 X-Powered-By: PHP/%s
 Accept-Ranges: bytes
 Content-Range: bytes 5-9/1010
+Content-Length: 5
 
-56789
\ No newline at end of file
+56789