PHP copy() and a 4GB limit
Posted on 2008-10-13
On a FreeBSD 6.2 system, my PHP scripts are encountering a 4GB filesize limit when using copy(). The copy process simply fails when 4 gigabytes have been transferred.
The attempted transfer is from a local file to a local file, and the filesystem is UFS (which has a 1TB filesize limit).
I have been unable to find any documentation regarding such a limit in PHP or FreeBSD. Can anyone provide a work-around for copying large files within PHP? Shelling out and using system commands is a possibility, but I would prefer to stay in PHP if possible.
PHP version is 5.1.6 with the Suhosin patch.