[TYPO3-core] RFC #15490: Throw exception instead of dying in enableFields() function

Dmitry Dulepov dmitry at typo3.org
Mon Sep 6 13:12:42 CEST 2010


Hi!

Steffen Gebert wrote:
> Problem:
> When you call
>> tslib_cObj::enableFields($table);
> with an unknown table, TYPO3 dies with the following error message:
>> NO entry in the $TCA-array for the table "blabla". This means that
>> the function enableFields() is called with an invalid table name as
>> argument.
> 
> Solution:
> Instead of calling die() an Exception should be thrown. The backtrace
> can give useful information, where the function is called.

Huge +1 by reading!

-- 
Dmitry Dulepov
TYPO3 core&security team member
Twitter: http://twitter.com/dmitryd
Read more @ http://dmitry-dulepov.com/


More information about the TYPO3-team-core mailing list