--TEST--
-http_send_file() syntactically invalid range
+http_send_file() first/last byte range
--SKIPIF--
<?php
include 'skip.inc';
checkcgi();
+checkmin(5);
?>
--ENV--
-HTTP_RANGE=bytes=xxx
+HTTP_RANGE=bytes=0-0,-1
--FILE--
<?php
+http_send_content_type("text/plain");
http_send_file('data.txt');
?>
--EXPECTF--
-Content-type: text/html
+Status: 206
X-Powered-By: PHP/%s
Accept-Ranges: bytes
-Content-Length: 1010
+Content-Type: multipart/byteranges; boundary=%d.%d
-0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
-0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
-0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
-0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
-0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
-0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
-0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
-0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
-0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
-0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
+
+--%d.%d
+Content-Type: text/plain
+Content-Range: bytes 0-0/1010
+
+0
+--%d.%d
+Content-Type: text/plain
+Content-Range: bytes 1009-1009/1010
+
+
+
+--%d.%d--