Issue Bug Closed

#23113Enhancement of t3lib_div::testInt

Michiel Roos 07/06/10, 23:41 updated 10/02/18, 12:23

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)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.