Req #39135 [Opn->Sus]: fpassthru with optional argument length
Edit report at https://bugs.php.net/bug.php?id=39135&edit=1
ID: 39135
Updated by: cmb@php.net
Reported by: third-chance at gmx dot de
Summary: fpassthru with optional argument length
-Status: Open
+Status: Suspended
Type: Feature/Change Request
-Package: Feature/Change Request
+Package: *General Issues
Operating System: Windows XP SP2
PHP Version: 5.1.6
Block user comment: N
Private report: N
New Comment:
This feature can easily be implemented in userland, so it's
introduction into PHP core would require discussion for which this
bugtracker is not suitable. Instead please send mail to the
internals mailing list[1]. For the time being, I'm suspending
this ticket.
[1] <https://www.php.net/mailing-lists.php#internals>
Previous Comments:
------------------------------------------------------------------------
[2006-10-13 08:42:32] 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.
------------------------------------------------------------------------
[2006-10-12 13:10:41] third-chance at gmx dot de
Description:
------------
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.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=39135&edit=1
Thread (3 messages)