Project

General

Profile

Actions

Bug #21123

closed

isFirstPartOfStr doesn't work with non-strings

Added by Steffen Kamper over 14 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
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

15440.diff (993 Bytes) 15440.diff Administrator Admin, 2010-08-12 14:42
15440_test.diff (980 Bytes) 15440_test.diff Administrator Admin, 2010-08-12 14:42
15440_v2.diff (830 Bytes) 15440_v2.diff Administrator Admin, 2010-08-12 15:34

Related issues 1 (0 open1 closed)

Has duplicate TYPO3 Core - Bug #23104: Enhancement of t3lib_div::isFirstPartOfStrClosedChristian Kuhn2010-07-05

Actions
Actions #1

Updated by Steffen Kamper over 14 years ago

v2 is the combination with #23104 - cast + high performance

Actions #2

Updated by Steffen Kamper over 14 years ago

Committed to svn
4_4 rev 8593
trunk rev 8594

Actions #3

Updated by Benni Mack about 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF