- fix property access
[m6w6/ext-http] / tests / send_data_006.phpt
1 --TEST--
2 http_send_data() multiple ranges
3 --SKIPIF--
4 <?php
5 include 'skip.inc';
6 checkcgi();
7 ?>
8 --ENV--
9 HTTP_RANGE=bytes=0-3, 4-5,9-11
10 --FILE--
11 <?php
12 http_send_content_type('text/plain');
13 http_send_data(str_repeat('123abc', 1000));
14 ?>
15 --EXPECTF--
16 Status: 206
17 X-Powered-By: PHP/%s
18 Accept-Ranges: bytes
19 Content-Type: multipart/byteranges; boundary=%d.%d
20
21
22 --%d.%d
23 Content-Type: text/plain
24 Content-Range: bytes 0-3/6000
25
26 123a
27 --%d.%d
28 Content-Type: text/plain
29 Content-Range: bytes 4-5/6000
30
31 bc
32 --%d.%d
33 Content-Type: text/plain
34 Content-Range: bytes 9-11/6000
35
36 abc
37 --%d.%d--