webp-convert
webp-convert copied to clipboard
Suppressed PHP warnings for rename and unlink operations
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.