Project

General

Profile

Actions

Bug #23113

closed

Enhancement of t3lib_div::testInt

Added by Michiel Roos over 14 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2010-07-06
Due date:
% Done:

0%

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

Description

t3lib_div::testInt can be optimized by making use of the PHP version of testInt called: is_int.

This function is still used in the core: 129 times.

A speed gain from ~ 45 - 81 % can be achieved on this function.

In addition to changing this function to use is_int, all calls to t3lib_div::testInt should be replaced by is_int.

I don't see the point of calling a special function just to call a single function inside.

(issue imported from #M15020)


Files

15020_testInt_v1.diff (482 Bytes) 15020_testInt_v1.diff Administrator Admin, 2010-07-06 23:43
15020_testInt_test_v1.php (906 Bytes) 15020_testInt_test_v1.php Administrator Admin, 2010-07-06 23:43

Related issues 3 (0 open3 closed)

Related to TYPO3 Core - Bug #23508: PHP Warning in Template module: mb_strlen() expects parameter 1 to be string, array givenClosedSteffen Gebert2010-09-06

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

Actions
Related to TYPO3 Core - Bug #28617: t3lib_utility_Math::canBeInterpretedAsInteger() fails on values with whitespaces or leading zerosRejectedStefan Neufeind2011-07-31

Actions
Actions

Also available in: Atom PDF