[TYPO3-core] RFC: #2302: substitute all strtoupper/strtolower with the t3lib_div-method
Peter Niederlag
peter at niederlag.de
Fri Jun 27 16:30:12 CEST 2008
Hi,
Steffen Kamper schrieb:
> Hi,
[...]
> Problem: strtoupper and strtolower are not multibyte-safe. For this reason
> we added 2 methods in t3lib_div sometime ago.
Are you sure? That's not what the manual states! http://php.net/strtoupper
> Now all calls in core to the native strtoupper/strtolower-functions should
> use these functions in t3lib_div instead.
Just to give some impression I did a quick check of time measuremant:
// native 500 loops ~0.005
// t3lib_div::wrapper 500 loops ~0.001
// native 5000 loops ~0.04
// t3lib_div::wrapper 5000 loops ~0.09
The wrapper seems to take twice the time. IMO it should be used only
were needed! Is this surely needed everywhere?
Greets,
Peter
--
Peter Niederlag * Neuer Sandberg 9 * 31535 Neustadt *
Fon (privat): 05036 / 924 100 * Fon (Büro): 05036 / 924 101
Fon (mobil): 0172 / 516 48 55 * Fax 05036 / 924 105
callto:typo3support (skype)
http://www.niekom.de * TYPO3 und EDV Dienstleistungen *
More information about the TYPO3-team-core
mailing list