Actions
Bug #21123
closedisFirstPartOfStr doesn't work with non-strings
Start date:
2010-08-12
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
4.5
PHP Version:
5.3
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
These should return TRUE:
t3lib_div::isFirstPartOfStr('24', 24)
t3lib_div::isFirstPartOfStr('24 Bier bitte', 24)
These should return FALSE:
t3lib_div::isFirstPartOfStr(NULL, 0)
t3lib_div::isFirstPartOfStr('', 0)
Solution: cast input values to string
(issue imported from #M15440)
Files
Actions