Actions
Bug #18309
closedChange elderly while(list()=each()) to foreach calls in t3lib_tstemplate
Start date:
2008-02-26
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
4.2
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
In some PHP5 versions the explode functions does not reset the array. A following while, list and each combination will not do anything.
class.t3lib_tstemplate.php
if (strstr($all,'{$')) {
$findConst = explode('{$',$all);
$theConstList=Array();
next($findConst);
while(list(,$constVal)=each($findConst)) {
So replace this by a foreach instead of the while
or insert the
reset ($findConst);
(issue imported from #M7669)
Files
Actions