[TYPO3-dev] Extensions need update for 4.3!
ries van Twisk
typo3 at rvt.dds.nl
Thu Oct 9 16:43:34 CEST 2008
On Oct 9, 2008, at 8:29 AM, Steffen Kamper wrote:
> Hi Ernesto,
>
> i see the point, but this is a workaround for a wrong call.
> The function was declared all the time to be used with arrays, so if
> an
> extension calls it with NULL it is (and was) wrong.
I like Ernesto's idea... passing null is common practice when no or un-
know data is available.
We enforce arrays when something not null was given and when null was
given we change it to an array.
great thinking Ernesto!!!
>
>
> Sure, php4 wasn't that fussy with wrong types, php5 is.
>
> So throwing this error is good imho to educate the devs for using API
> the right way.
>
> If you don't like the error message you can switch off displayErrors
> of
> coarse.
>
> vg Steffen
More information about the TYPO3-dev
mailing list