[TYPO3-core] RFC: #10040: define Default GET-vars

Oliver Hader oliver at typo3.org
Tue Sep 1 19:35:19 CEST 2009


Hi Steffen,

Steffen Kamper schrieb:
>> But that is then a misbehaviour of
>> t3lib_div::array_merge_recursive_overrule().
>>
>> olly
> 
> no. Don't think in TS arrays where this is possible:
> test {
>   var1 {
>     var2 = 3
>     var2 {
>       p3 = 15
>     }
>   }
> }
> 
> with normal arrays this isn't possible, so it's obvious that var2 gets
> overridden.
> 
> As this is only theoretic we have in reallife the namespaced Getvars
> like tx_ttnews.tt_news.property = value

The behavior of removeDotsFromTS() is to override already existing
stuff. In your example "var2.p3 = 15" will win. "var2 = 3" gets lost.

I've created a unit test for that which I'd commit to SVN Trunk in some
minutes:
http://bugs.typo3.org/view.php?id=11846

olly
-- 
Oliver Hader
TYPO3 Release Manager 4.3


More information about the TYPO3-team-core mailing list