[TYPO3-core] RFC: Feature Request 6037: Performance tunning in t3lib_div by removing elderly PHP functions
Franz Holzinger
franz at fholzinger.com
Wed Aug 22 13:51:17 CEST 2007
Hello Oliver,
> Problem:
> There are some old-styled PHP functions in t3lib_div which could be done
> in a better way nowadays. Those among are:
> * while(list($k, $v)=each($arr)) --> foreach ($arr as $k => &$v)
> * strstr($haystack, $needle) --> strpos($haystack, $needle)
>
> Comments:
> Thanks to Popy for creating the initial patch on this issue.
> I left the function t3lib_div::trimExplode() untouched because there's
> already a RFC created by Wolfgang/Masi on this list.
http://bugs.typo3.org/view.php?id=6193
0006193: Object copied in t3lib_div::makeInstance
I think this issue should also be merged into your patch. Unneeded objects
can be created here and this causes problems with some PHP4 versions.
- Franz
More information about the TYPO3-team-core
mailing list