[TYPO3-core] RFC: Feature Request 6037: Performance tunning in t3lib_div by removing elderly PHP functions
franz at fholzinger.com
Wed Aug 22 13:51:17 CEST 2007
> 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)
> 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.
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.
More information about the TYPO3-team-core