Project

General

Profile

Actions

Bug #28617

closed

t3lib_utility_Math::canBeInterpretedAsInteger() fails on values with whitespaces or leading zeros

Added by Stefan Neufeind over 13 years ago. Updated over 13 years ago.

Status:
Rejected
Priority:
Should have
Category:
-
Target version:
-
Start date:
2011-07-31
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.6
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

currently:
t3lib_utility_Math::canBeInterpretedAsInteger(' 30 ') results in FALSE
t3lib_utility_Math::canBeInterpretedAsInteger('030') results in FALSE

Will come up with a patch and unit-test for that.


Related issues 3 (0 open3 closed)

Related to TYPO3 Core - Bug #23525: Enhancement of t3lib_div::testInt introduced a different behaviourClosedErnesto Baschny2010-09-11

Actions
Related to TYPO3 Core - Bug #23113: Enhancement of t3lib_div::testIntClosedSteffen Kamper2010-07-06

Actions
Related to TYPO3 Core - Bug #23114: Cleanup: replace calls to t3lib_div::testInt with calls to is_int, mark t3lib_div:testInt as deprecatedClosedDmitry Dulepov2010-07-06

Actions
Actions

Also available in: Atom PDF