[TYPO3-core] RFC: #15685: Enhancement of t3lib_div::testInt introduced a different behaviour causing bugs

Ernesto Baschny [cron IT] ernst at cron-it.de
Wed Sep 22 11:23:59 CEST 2010


Ernesto Baschny [cron IT] schrieb am 13.09.2010 09:26:

>> this is a SVN patch request.
>>
>> Bugtracker reference: http://bugs.typo3.org/view.php?id=15685
>>
>> Branches: trunk
>>
>> Problem:
>> When the enhanced version of t3lib_div::testInt was commited, a
>> different behaviour was introduced, for special input data like '10.',
>> '0123' or ' 5'.
>>
>> Solution:
>> Restore the old behaviour while keeping a bit of the performance
>> improvement.
>>
>> Note:
>> Attached the solution I initially suggested because it seems to be the
>> fastest when comparing speed on different systems.
>> The patch also contains the adpted and enhanced unit tests.
> 
> +1 by reading and testing.
> 
> Commited to trunk:
> 
> - unit test changes to rev. 8780
> - bugfix to rev. 8781 (will be in 4.5alpha2)

This is of course also needed for 4.4, because that fix was applied to
that branch as well.

So commited to TYPO3_4-4:

- unit test changes to rev. 8858
- bugfix to rev. 8859 (wrong code was never released, will be in 4.4.2.

Cheers,
Ernesto


More information about the TYPO3-team-core mailing list