Project

General

Profile

Actions

Bug #18309

closed

Change elderly while(list()=each()) to foreach calls in t3lib_tstemplate

Added by Franz Holzinger about 16 years ago. Updated over 13 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
-
Target version:
-
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

0007669.patch (9.58 KB) 0007669.patch Administrator Admin, 2008-02-26 14:31

Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #18312: Constants are not correctly substituted on some PHP5 distributionsClosedOliver Hader2008-02-26

Actions
Related to TYPO3 Core - Bug #21208: TypoScript FORM object does not render correctly anymoreClosedKasper Skårhøj2009-10-08

Actions
Actions

Also available in: Atom PDF