Skip to content

$length argument for fpassthru #9673

@divinity76

Description

@divinity76

Description

would be nice to have a ?int $length=null for fpassthru.

currently, implementing HTTP range requests seems to be a pain: readfile() isn't suitable because it has neither a $offset nor a $length argument, and fpassthru isn't suitable either because it doesn't have a $length argument, so you'll have to resort to a fread()+echo loop.

It would be easier and faster to implement HTTP range support if fpassthru had a $length argument.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions