[TYPO3-core] RFC: #9758: Write Configuration to extTables.php

Steffen Kamper info at sk-typo3.de
Mon Nov 10 11:15:10 CET 2008


Hi,

Michael Stucki schrieb:
> Steffen Kamper wrote:
>>> Side note: As the file is included on the global scope, you can refer to
>>> $TCA directly instead of $GLOBALS['TCA'].
>>>
>>> I still remember some strange bug where these values had different
>>> contents. However, the last time I checked it, I was not able to
>>> reproduce this...
>> there is one context where i know it's critical: the XCLASS definition
>> (only because of the reg. expression in EM).
> 
> Well as it seems you're not going to touch that part anyway, are you?
> 
no

>> The shipped extTables also use $GLOBALS, so i considered this as general
>> CGL which is at least the safe way.
> 
> No. If it's written with $GLOBALS in extTables.php, that is a bug then.
> 
> Anyway, it's always better to fix the root of the problem rather than
> working around it.
> 
> - michael

i see your point. The inclusion happens where $TCA is used (eg. 
tslib_fe). I wasn't aware of it.

So this has to be changed in the shipped extTables with a comment too.

It seems that this is a problem in FE only, as the changes work for the 
BE with GLOBALS-syntax.

vg Steffen


More information about the TYPO3-team-core mailing list