note 51517 deleted from function.unlink by cmb
| From: | cmb@php.net | Date: | Sun, 29 Dec 2019 11:34:17 +0000 |
| Subject: | note 51517 deleted from function.unlink by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-213689@lists.php.net to get a copy of this message | ||
Note Submitter: ashley at semantic dot org
----
Actually you should use "@unlink" rather than testing with file_exists. The former is
atomic, whereas the latter can break if you can't guarantee only one process will try to delete
a given file at a time.