8ee6eac645a378f944c0ed83383197244a4d0031
[m6w6/ext-http] / tests / send_file_010.phpt
1 --TEST--
2 http_send_file() NIL-NUM range
3 --SKIPIF--
4 <?php
5 include 'skip.inc';
6 checkcgi();
7 checkmin(5.1);
8 ?>
9 --FILE--
10 <?php
11 $_SERVER['HTTP_RANGE'] = 'bytes=-9';
12 http_send_file('data.txt');
13 ?>
14 --EXPECTF--
15 Status: 206
16 X-Powered-By: PHP/%s
17 Accept-Ranges: bytes
18 Content-Range: bytes 1001-1009/1010
19 Content-Length: 9
20 Content-type: %s
21
22 23456789