upgrade test suite to 5.3
[m6w6/ext-http] / tests / send_file_007.phpt
index 289faf7c1cc45d53506ca44d116a8b6c26ad445d..eb6452dc446e6230252ad7c0122bc0215c1be650 100644 (file)
@@ -1,16 +1,23 @@
 --TEST--
-http_send_file() oversized range
+http_send_file() NIL-NIL range
 --SKIPIF--
 <?php 
 include 'skip.inc';
+checkcgi();
+checkmin(5.3);
 ?>
 --ENV--
-HTTP_RANGE=bytes=-1111
+HTTP_RANGE=bytes=0-0
 --FILE--
 <?php
 http_send_file('data.txt');
 ?>
 --EXPECTF--
-Status: 416
-Content-type: text/html
+Status: 206%s
 X-Powered-By: PHP/%s
+Accept-Ranges: bytes
+Content-Range: bytes 0-0/1010
+Content-Length: 1
+Content-type: %s
+
+0