- added missing http_request() function stub
[m6w6/ext-http] / tests / send_file_009.phpt
1 --TEST--
2 http_send_file() NUM-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=5-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 5-9/1010
19 Content-Length: 5
20 Content-type: %s
21
22 56789