Implement gc handlers
[m6w6/ext-http] / tests / envresponseranges001.phpt
1 --TEST--
2 ranges
3 --SKIPIF--
4 <?php
5 include "skipif.inc";
6 ?>
7 --GET--
8 a=b
9 --ENV--
10 HTTP_RANGE=bytes=-3,000-001,1-1,0-0,100-
11 --FILE--
12 <?php
13
14 $r = new http\Env\Response;
15 $r->setBody(new http\Message\Body(fopen(__FILE__, "rb")));
16 $r->send();
17
18 ?>
19 --EXPECTF--
20 --%s%c
21 Content-Type: application/octet-stream%c
22 Content-Range: bytes 107-109/110%c
23 %c
24 ?>
25 %c
26 --%s%c
27 Content-Type: application/octet-stream%c
28 Content-Range: bytes 0-1/110%c
29 %c
30 <?%c
31 --%s%c
32 Content-Type: application/octet-stream%c
33 Content-Range: bytes 1-1/110%c
34 %c
35 ?%c
36 --%s%c
37 Content-Type: application/octet-stream%c
38 Content-Range: bytes 0-0/110%c
39 %c
40 <%c
41 --%s%c
42 Content-Type: application/octet-stream%c
43 Content-Range: bytes 100-109/110%c
44 %c
45 nd();
46
47 ?>
48 %c
49 --%s--