symfony/symfony — pull request #5878 by adedommelin (2012-10-31 06:48:08+00:00)
Title: Exception when using File move() across local partition & NFS share

Hello,

We've faced an issue using move() function to move a local file to a locally mounted network share. The root cause seems to be PHP's rename() function failing in this use case.

This patch is, by design, less atomic than your current function as it performs the move in 2 steps ( copy() then unlink() ) but allow usage of this function in all types of infrastructures.

Bests