Bug #79423 [Ver->Csd]: copy command is limited to size of file it can copy

From: Date: Tue, 22 Sep 2020 11:20:14 +0000
Subject: Bug #79423 [Ver->Csd]: copy command is limited to size of file it can copy
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-229128@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=79423&edit=1

 ID:                 79423
 Updated by:         cmb@php.net
 Reported by:        jeff at forerunnertv dot com
 Summary:            copy command is limited to size of file it can copy
-Status:             Verified
+Status:             Closed
 Type:               Bug
 Package:            Filesystem function related
 Operating System:   windows
 PHP Version:        7.3.16
 Assigned To:        cmb
 Block user comment: N
 Private report:     N

 New Comment:

Automatic comment on behalf of cmbecker69@gmx.de
Revision: http://git.php.net/?p=php-src.git;a=commit;h=4000780b3d0bbba2d94f65602e602c3892d9775b
Log: Fix #79423: copy command is limited to size of file it can copy


Previous Comments:
------------------------------------------------------------------------
[2020-03-29 13:07:27] cmb@php.net

The following pull request has been associated:

Patch Name: Fix #79423: copy command is limited to size of file it can copy
On GitHub:  https://github.com/php/php-src/pull/5319
Patch:      https://github.com/php/php-src/pull/5319.patch

------------------------------------------------------------------------
[2020-03-29 12:53:39] cmb@php.net

This is a Windows only issue, and is because we're not properly
retrieving the file size when mmapping.  After this is fixed, on
32bit systems files up to 4294967295 bytes can be copied; 64bit
systems practically have no limit.

------------------------------------------------------------------------
[2020-03-28 23:43:20] requinix@php.net

Copies exactly 1GB. Affects other functions like stream_copy_to_stream() as well.

There may be an existing bug report for this problem.

------------------------------------------------------------------------
[2020-03-28 23:19:41] jeff at forerunnertv dot com

<?php
  $from = "C:\myBigFile.mp4"; // Needs to be a big ile, like 5GB or 6GB
  $to = "C:\myBigFile_COPY.mp4";
  copy($from, $to);
?>

------------------------------------------------------------------------
[2020-03-28 22:44:15] requinix@php.net

Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves.

A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external
resources such as databases, etc. If the script requires a
database to demonstrate the issue, please make sure it creates
all necessary tables, stored procedures etc.

Please avoid embedding huge scripts into the report.



------------------------------------------------------------------------


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=79423


--
Edit this bug report at https://bugs.php.net/bug.php?id=79423&edit=1


Thread (1 message)

  • cmb@php.net
  • Unknown Message
    • cmb@php.net
« previous php.bugs (#229128) next »