[TYPO3-core] RFC #12099: Replace "Warning: filemtime(): stat failed" with a nice error message

Ralf Hettinger ng at ralfhettinger.de
Sun Oct 4 12:35:59 CEST 2009


Am 01.10.2009 22:46 schrieb Steffen Gebert:
> Hi,
> 
> This is an SVN patch request.
> 
> Type: Bugfix
> 
> Bugtracker references:
> http://bugs.typo3.org/view.php?id=12099
> 
> Branches: trunk
> 
> Problem:
> If a file in uploads/ folder is missing, but referenced in a content
> element
> a) PHP warning appears (and may break layout), if display_errors is enabled
> b) no hint is given to the user
> 
> Solution:
> Add a check, weather the file really exists and output a warning otherwise.
> 
> Notes:
> This this doesn't compete with Rupert's error handler.
> 
> Regards
> Steffen
> 

Hi.

As discussed in http://bugs.typo3.org/view.php?id=5665 , it would be
better to use is_readable than file_exists.

Cheers
Ralf


More information about the TYPO3-team-core mailing list