Is there a filesize limit on the copy() function?
running the copy command on various files, it seems the limit is around 4GB.
No matter what size the file is, it returns true.
- If the file is <4GB, it seems the full file has been copied over just fine.
- If the file is >4GB, it seems to have only copied over a portion of the file. Some files are 3.5GB, some are 1GB, some are only a couple hundred MBs big
Also, if I try and recopy the same exact file over again, the exact result happens. So if the first time, it was a 5GB file, and it resulted in a 1GB file, the re-copy will result in 1GB (to the exact byte).
I have tried using stream_copy_to_stream() . Same result, even the same exact file as if I tried to re-copy() the file.
Searching around, can't seem to find anything in regards to a file size limit. It is not timing out (execution time limit has been changed, but doesn't even come close to hitting it, as with the result with a couple hundred MBs only takes a few seconds to complete).
I was able to get the copy to complete by running an exec command (exec(xcopy SRC DEST /Y)).
Setup:
WampServer 3.0.6 64-bit (running PHP 7.0.10)
Windows 64 64bit
Source Drive is NTFS
Destination Drive is NTFS, external drive (but doesn't matter based on tests)
Any help would be appreciated.