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

Helmut Hummel helmut at typo3.org
Sat Sep 11 16:13:25 CEST 2010


Hi,

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.


Regards Helmut
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 15685_test.php
Type: text/php
Size: 3318 bytes
Desc: not available
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20100911/f320f88a/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 15685.diff
Type: text/x-patch
Size: 2820 bytes
Desc: not available
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20100911/f320f88a/attachment-0001.bin>


More information about the TYPO3-team-core mailing list