[TYPO3-core] RFC #5932: Bug: page module not usable due to warning message with filemtime

Dmitry Dulepov dmitry at typo3.org
Mon Dec 22 08:24:03 CET 2008


Hi!

Franz Holzinger wrote:
> Type: Bugfix
> 
> Bugtracker references:
> http://bugs.typo3.org/view.php?id=5932
> 
> Branches:
> TYPO3_4-2 and trunk.

Patch file is not attached. http://typo3.org/teams/core/core-mailinglist-rules/: "...Then you can send a mail to the core list with a unified diff patch attached...".

> Warning: filemtime() [function.filemtime]: stat failed for /var/www/html/uploads/pics/the_img_name.jpg in /var/www/html/trunk/t3lib/class.t3lib_befunc.php on line 1729
> 
> This happens when the image has been deleted from the file system. 

Hmmm. Files should not be deleted manually from uploads/. System does it when there are no references to files.

> Solution:
> Check for the existance of the file before the call of function filemtime.

Using @ in front of filemtime could be an alternative. This will save one file system access, which is the slowest things.

-- 
Dmitry Dulepov
TYPO3 core team
In the blog: http://typo3bloke.net/post-details/how_will_i_fix_bugs_in_extensions_from_now_on/
My TYPO3 book: http://www.packtpub.com/typo3-extension-development/book


More information about the TYPO3-team-core mailing list