[TYPO3-core] RFC #15020: Enhancement of t3lib_div::testInt

Steffen Ritter info at rs-websystems.de
Wed Jul 7 10:28:54 CEST 2010


Am 07.07.2010 10:21, schrieb Steffen Kamper:
> it seems that t3lib_div::testInt was written for strings mainly.
> The name of the function is misleading here.
> What's about

return ((string)intval($var) == $var);

would be better i think, to enshure that $var is not casted to string 
but string compared


More information about the TYPO3-team-core mailing list