- fix PHP4 build (has no only_exceptions INI setting
[m6w6/ext-http] / tests / send_file_001.phpt
1 --TEST--
2 http_send_file()
3 --SKIPIF--
4 <?php
5 include 'skip.inc';
6 checkcgi();
7 ?>
8 --FILE--
9 <?php
10 http_send_file('data.txt');
11 ?>
12 --EXPECTF--
13 Content-type: text/html
14 X-Powered-By: PHP/%s
15 Accept-Ranges: bytes
16
17 0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
18 0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
19 0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
20 0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
21 0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
22 0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
23 0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
24 0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
25 0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
26 0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789