Bug #54302
closedFilesize might be wrong after setContents() in LocalDriver
100%
Description
I use the setContents()
function in an Extension and stumbled upon this strange problem:
Directly after calling setContents()
the getSize()
of the file always returned 0.
After some research I found out that it seems to be a PHP cache issue. When I call clearstatcache()
after file_put_contents()
the value for the file size is correct.
So I think it would be a good idea to call clearstatcache()
after file_put_contents()
in the LocalDriver
.
Updated by Gerrit Code Review over 10 years ago
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/26278
Updated by Gerrit Code Review over 10 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/26278
Updated by Alexander Stehlik over 10 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset ebd3e1bf711501bf6bd751a32ead638673359249.
Updated by Riccardo De Contardi almost 7 years ago
- Status changed from Resolved to Closed