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

Franz Holzinger franz at ttproducts.de
Sat Dec 27 17:00:05 CET 2008


Dmitry Dulepov a écrit :
> Franz Holzinger wrote:
>> Type: Bugfix
>>
>> Bugtracker references:
>> http://bugs.typo3.org/view.php?id=5932
>>
>> Branches:
>> TYPO3_4-2 and trunk.
>> 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. 
>> 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.
done

> Stefano Kowalke a écrit :
>> please take care of the coding guidelines in your patches.
>> I attach a CGL-conform version for this patch.

done

- Franz

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 5932-v2.diff
Type: text/x-patch
Size: 4277 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20081227/8d9c400b/attachment.bin 


More information about the TYPO3-team-core mailing list