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

Dmitry Dulepov dmitry at typo3.org
Wed Jul 7 11:20:13 CEST 2010


Hi!

Dmitry Dulepov wrote:
> Not the same result as before:
> 
> !strcmp(' 5',intval(' 5'))
> 	false
> 
> (intval(' 5') == ' 5')
> 	true

I was too fast to send it... Basically current testInt(' 5') is false,
while the new one is true. I guess we need unit tests first for all these
combinations and then we can try alternative solutions.

-- 
Dmitry Dulepov
TYPO3 core&security teams member
Twitter: http://twitter.com/dmitryd
Read more @ http://dmitry-dulepov.com/


More information about the TYPO3-team-core mailing list