Skip to content
Snippets Groups Projects
Commit e4e0f1b0 authored by Xavier Perseguers's avatar Xavier Perseguers Committed by Markus Klein
Browse files

[BUGFIX] Random PHP warning unlinking valid cache file

Sometimes, although a valid cache path and filename is given to unlink(),
it generates a PHP warning as if the file did not exist.

Change-Id: I3ff65cafaf22cb925a9ce395aa9d0fb52ee2b529
Resolves: #67802
Releases: master
Reviewed-on: http://review.typo3.org/40713


Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: default avatarMarkus Klein <markus.klein@typo3.org>
Tested-by: default avatarMarkus Klein <markus.klein@typo3.org>
parent 67448ed9
Branches
Tags
No related merge requests found
......@@ -237,7 +237,7 @@ class FileBackend extends \TYPO3\CMS\Core\Cache\Backend\SimpleFileBackend implem
if (file_exists($pathAndFilename) === FALSE) {
return FALSE;
}
if (unlink($pathAndFilename) === FALSE) {
if (@unlink($pathAndFilename) === FALSE) {
return FALSE;
}
return TRUE;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment