Bug #74395 [NEW]: Support 4g files in stream_copy_to_stream() on 32 bit php builds
| From: | maggus dot staab at googlemail dot com | Date: | Sun, 09 Apr 2017 09:34:43 +0000 |
| Subject: | Bug #74395 [NEW]: Support 4g files in stream_copy_to_stream() on 32 bit php builds | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-208402@lists.php.net to get a copy of this message | ||
From: maggus dot staab at googlemail dot com
Operating system:
PHP version: 7.1.3
Package: Streams related
Bug Type: Bug
Bug description:Support 4g files in stream_copy_to_stream() on 32 bit php builds
Description:
------------
stream_copy_to_stream() expects the 3rd arg to be a integer which limits
its max value on 32 bit builds. This means some real world use cases
dont work because the MAX_INT is not big enough to handle 4GB+
filesizes.
Could we handle the arg like a string to support "huge files" on 32 bit
php?
https://github.com/nextcloud/server/issues/1707#issuecomment-288890497
Expected result:
----------------
Copy of streams with filesize >= 4gb should be supported
Actual result:
--------------
stream_copy_to_stream() expects parameter 3 to be integer, string
--
Edit bug report at https://bugs.php.net/bug.php?id=74395&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=74395&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=74395&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=74395&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=74395&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=74395&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=74395&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=74395&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=74395&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=74395&r=support
Expected behavior: https://bugs.php.net/fix.php?id=74395&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=74395&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=74395&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=74395&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=74395&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=74395&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=74395&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=74395&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=74395&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=74395&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=74395&r=mysqlcfg