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

Franz Holzinger franz at ttproducts.de
Mon Dec 22 14:03:53 CET 2008


Hello Dmitry,

> Franz Holzinger wrote:
>> Do you agree to introduce a new TYPO3 global debug variable?
>>
>> E.g.
>> $TYPO3_CONF_VARS['SYS']['reportErrors'] = 1
>> 0 ... to allow @ before function calls
>> 1 ... no @ before function calls is allowed. This can be slower, but
>> will always give all error messages.
> 
> I do not think it is necessary. Here is my reasons:
> - this will duplicate the same function call, which makes code messy
> - in production warnings must be disabled, so there is no real sense having this code in production

There would be no duplicate code if an error handler would be used:

http://de2.php.net/manual/en/function.set-error-handler.php

In the error handler the cleanup of not found files could be prepared 
(later) or a log file be written.

- Franz



More information about the TYPO3-team-core mailing list