Re: [PHP-DEV] fpassthru should get an optional length argument

2021-10-30 Thread Pierre
Le 30/10/2021 à 11:39, Hans Henrik Bergan a écrit : ref https://bugs.php.net/bug.php?id=39135 , i was thinking about how to implement HTTP Range requests/HTTP 206 Partial Content in userland php, and ofc it's possible to implement using fread() loops, but it'd be easier (and faster? presumably)

[PHP-DEV] fpassthru should get an optional length argument

2021-10-30 Thread Hans Henrik Bergan
ref https://bugs.php.net/bug.php?id=39135 , i was thinking about how to implement HTTP Range requests/HTTP 206 Partial Content in userland php, and ofc it's possible to implement using fread() loops, but it'd be easier (and faster? presumably) to implement if fpassthru() natively supported a $max_