In our project, we occasionally encounter warnings when the unlink/rename operations fail. This issue arises infrequently when another PHP process unlinks the file between the execution of file_exists() and unlink(). As a result, the unlink() operation fails, generating a warning. This PR addresses the issue by suppressing all warnings associated with both unlink() and rename() functions.
In our project, we occasionally encounter warnings when the
unlink/rename
operations fail. This issue arises infrequently when another PHP process unlinks the file between the execution offile_exists()
andunlink()
. As a result, theunlink()
operation fails, generating a warning. This PR addresses the issue by suppressing all warnings associated with bothunlink()
andrename()
functions.