- extend & fixup test suite
[m6w6/ext-http] / tests / send_file_006.phpt
1 --TEST--
2 http_send_file() syntactically invalid range
3 --SKIPIF--
4 <?php
5 include 'skip.inc';
6 checkcgi();
7 checkmax(5.0);
8 ?>
9 --ENV--
10 HTTP_RANGE=bytes=xxx
11 --FILE--
12 <?php
13 http_send_file('data.txt');
14 ?>
15 --EXPECTF--
16 Content-type: %s
17 X-Powered-By: PHP/%s
18 Accept-Ranges: bytes
19 Content-Length: 1010
20
21 0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
22 0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
23 0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
24 0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
25 0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
26 0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
27 0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
28 0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
29 0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
30 0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789