branch off v1 as R_1_7
[m6w6/ext-http] / tests / send_file_007.phpt
index 966129c8fe56b2323c71f8e9ae450098ecd74fbc..09f11671d416f9b55843e641944253d3584f2fca 100644 (file)
@@ -1,18 +1,23 @@
 --TEST--
-http_send_file() oversized range
+http_send_file() NIL-NIL range
 --SKIPIF--
 <?php 
 include 'skip.inc';
 checkcgi();
-checkmax(5.0);
+checkmin("5.2.5");
 ?>
 --ENV--
-HTTP_RANGE=bytes=-1111
+HTTP_RANGE=bytes=0-0
 --FILE--
 <?php
 http_send_file('data.txt');
 ?>
 --EXPECTF--
-Status: 416
-Content-type: %s
+Status: 206%s
 X-Powered-By: PHP/%s
+Accept-Ranges: bytes
+Content-Range: bytes 0-0/1010
+Content-Length: 1
+Content-type: %s
+
+0