--TEST-- env response ranges --SKIPIF-- --ENV-- HTTP_RANGE=bytes=2-4 --GET-- a=b --FILE-- setContentType("text/plain"); $r->setContentDisposition( array("attachment" => array(array("filename" => basename(__FILE__)))) ); $r->setBody(new http\Message\Body(fopen(__FILE__, "rb"))); $r->send(); ?> --EXPECTHEADERS-- Content-Range: bytes 2-4/248 --EXPECTF-- php