91dedaa5f470568378be3d9eb452ce70f715da76
[m6w6/ext-http] / tests / send_data_007.phpt
1 --TEST--
2 http_send_data() NIL-NIL range
3 --SKIPIF--
4 <?php
5 include 'skip.inc';
6 checkcgi();
7 ?>
8 --ENV--
9 HTTP_RANGE=bytes=0-0
10 --FILE--
11 <?php
12 http_send_content_type('text/plain');
13 http_send_data("abc");
14 ?>
15 --EXPECTF--
16 Status: 206
17 X-Powered-By: PHP/%s
18 Content-Type: text/plain
19 Accept-Ranges: bytes
20 Content-Range: bytes 0-0/3
21 Content-Length: 1
22
23 a