5.3->5.2.5
[m6w6/ext-http] / tests / send_file_006.phpt
1 --TEST--
2 http_send_file() first/last byte range
3 --SKIPIF--
4 <?php
5 include 'skip.inc';
6 checkcgi();
7 checkmin("5.2.5");
8 ?>
9 --ENV--
10 HTTP_RANGE=bytes=0-0,-1
11 --FILE--
12 <?php
13 http_send_content_type("text/plain");
14 http_send_file('data.txt');
15 ?>
16 --EXPECTF--
17 Status: 206%s
18 X-Powered-By: PHP/%s
19 Accept-Ranges: bytes
20 Content-Type: multipart/byteranges; boundary=%d.%d
21
22
23 --%d.%d
24 Content-Type: text/plain
25 Content-Range: bytes 0-0/1010
26
27 0
28 --%d.%d
29 Content-Type: text/plain
30 Content-Range: bytes 1009-1009/1010
31
32
33
34 --%d.%d--