Bug #81145 [Com]: copy() and stream_copy_to_stream() fail for +4GB files
| From: | ken at nowsoftwaresolutions dot com | Date: | Thu, 04 Aug 2022 00:14:40 +0000 |
| Subject: | Bug #81145 [Com]: copy() and stream_copy_to_stream() fail for +4GB files | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-242124@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=81145&edit=1
ID: 81145
Comment by: ken at nowsoftwaresolutions dot com
Reported by: php at bitm dot sg
Summary: copy() and stream_copy_to_stream() fail for +4GB
files
Status: Closed
Type: Bug
Package: Filesystem function related
Operating System: Windows 10.0.19042.985 x64
PHP Version: 7.4
Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
I received this bug after building PHP 8.1.8 on a Raspberry Pi Model 4B with 8 GB RAM running Ubuntu
Server 20.04.4 LTS.
Previous Comments:
------------------------------------------------------------------------
[2021-06-17 11:19:43] git@php.net
Automatic comment on behalf of cmb69
Revision: https://github.com/php/php-src/commit/2555efadbc1f8124448fcd73c1c208f3abe430e5
Log: Fix #81145: copy() and stream_copy_to_stream() fail for +4GB files
------------------------------------------------------------------------
[2021-06-16 11:19:10] cmb@php.net
The following pull request has been associated:
Patch Name: Fix #81145: copy() and stream_copy_to_stream() fail for +4GB files
On GitHub: https://github.com/php/php-src/pull/7158
Patch: https://github.com/php/php-src/pull/7158.patch
------------------------------------------------------------------------
[2021-06-16 11:04:34] cmb@php.net
Confirmed (affects PHP-7.4 on Windows as well).
Thanks for the helpful analysis on reddit[1].
[1] <https://www.reddit.com/r/PHP/comments/o0oqhg/problems_copying_large_files/h1y9a5t/>
------------------------------------------------------------------------
[2021-06-16 10:14:09] php at bitm dot sg
Fixed the Windows version because it was cut off.
------------------------------------------------------------------------
[2021-06-16 09:56:11] nikic@php.net
Seems to work fine on Linux.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=81145
--
Edit this bug report at https://bugs.php.net/bug.php?id=81145&edit=1