|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #39135 fpassthru with optional argument length
Submitted: 2006-10-12 13:10 UTC Modified: -
Avg. Score:4.6 ± 0.5
Reproduced:8 of 8 (100.0%)
Same Version:1 (12.5%)
Same OS:5 (62.5%)
From: third-chance at gmx dot de Assigned:
Status: Open Package: Feature/Change Request
PHP Version: 5.1.6 OS: Windows XP SP2
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: third-chance at gmx dot de
New email:
PHP Version: OS:


 [2006-10-12 13:10 UTC] third-chance at gmx dot de
To allow resuming http-downloads a php-script must be able to deliver a specific range from a file. Although you can use fseek to start from a specific offset, their is no way of telling fpassthru to stop before the eof.
I would like to see an optional argument 'length', which stops after sending n bytes. This would be similar to the argument of the fwrite function.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2006-10-13 08:42 UTC] charlie07 at gmx dot net
Since installing the PECL HTTP extension is not always possible (especially on shared hosts), i fully support this request. Supporting partial downloads is otherwise impossible.
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Sat Apr 04 22:01:22 2020 UTC