[TYPO3-core] RFC #9657: Instantiate time tracker as null object if not really required

Rupert Germann rupi at gmx.li
Mon Aug 31 18:25:45 CEST 2009


Jeff Segars schrieb:
> There's one bit of strangeness in t3lib_timeTrack because it defines the 
> debug_typo3PrintError() method.  This method is actually called by 
> tslib_fe->printError() when a database connection fails, page isn't 
> found, etc to generate the well known TYPO3 error page. It's a static 
> call to t3lib_timeTrack::debug_typo3PrintError() though so error 
> messages continue to work even if the null class is used.

yep that puzzled me too.
that works only because class t3lib_timtrack is included by require_once 
and it's also registered in the autoloader registry.

moving function t3lib_timeTrack() to somewhere else seems to be the 
cleanest solution.

greets
rupert


More information about the TYPO3-team-core mailing list