I use PHP\'s copy() function to copy files. To my horror, I have discovered that it only copied 2 588 396 096 bytes of my 15 473 297 984 bytes large .7z file.
copy()