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