Project

General

Profile

Actions

Bug #54302

closed

Filesize might be wrong after setContents() in LocalDriver

Added by Alexander Stehlik over 10 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
File Abstraction Layer (FAL)
Target version:
Start date:
2013-12-10
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
5.4
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

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.

Actions

Also available in: Atom PDF