[TYPO3-core] RFC #9266: Bug: strcmp() with array as parameter in t3lib_div::linkThisScript() produces warnings with PHP 5.3
Niels Pardon
mail at niels-pardon.de
Tue Sep 2 19:25:53 CEST 2008
Hi Ingo,
Ingo Renner schrieb:
> Niels Pardon wrote:
>
>> Solution:
>> The strcmp() just checks whether the GET parameter has an empty string
>> value. Let's do it with a simple !== '' and the warnings are gone.
>
> !empty($var) is even more explicit and easier to understand
yes, that's true. But what if the $value = 0? Then empty($value) will be
true and I'm not sure whether this intended.
Greets,
Niels
More information about the TYPO3-team-core
mailing list