--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(); ?> --EXPECTHEADERSF-- Content-Type: text/plain%s --EXPECTF-- php