[TYPO3-core] RFC #15021: Cleanup: replace calls to t3lib_div::testInt with calls to is_int, mark t3lib_div:testInt as deprecated

Christian Kuhn lolli at schwarzbu.ch
Thu Aug 12 21:44:34 CEST 2010


Dmitry Dulepov wrote:
> Michiel Roos [netcreators] wrote:
>> V2 adds: self::logDeprecatedFunction(); to the testInt function.
> 
> -1 for the same reason as previous patch: is_int() does not do the same as
> t3lib_div::testInt():
> 
> t3lib_div::testInt('5') returns true
> is_int('5') returns false


So this issue is dropped.
If we want to substitute the (now pretty fast) t3lib_div::testInt() with 
is_int in the core, we need to tackle every occurance on its own.
This should maybe be done with single issues for systematically 
identical changes, as we need to have a close look to the surrounding code.

Regards
Christian


More information about the TYPO3-team-core mailing list