rosell-dk / webp-convert

Convert jpeg/png to webp with PHP (if at all possible)
MIT License
576 stars 101 forks source link

Suppressed PHP warnings for rename and unlink operations #345

Closed kowsar89 closed 4 months ago

kowsar89 commented 1 year ago

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.