5.3->5.2.5
[m6w6/ext-http] / tests / send_ifrange_003.phpt
1 --TEST--
2 http_send() If-Range
3 --SKIPIF--
4 <?php
5 include 'skip.inc';
6 checkcgi();
7 checkmin("5.2.5");
8 ?>
9 --ENV--
10 HTTP_RANGE=bytes=0-1
11 HTTP_IF_RANGE="abcd"
12 --FILE--
13 <?php
14 http_cache_etag('abc');
15 http_send_file(__FILE__);
16 ?>
17 --EXPECTF--
18 X-Powered-By: %s
19 Cache-Control: private, must-revalidate, max-age=0
20 ETag: "abc"
21 Accept-Ranges: bytes
22 Content-Length: %d
23 Content-type: text/html
24
25 %a