[TYPO3-core] RFC: Bug #7669: Change elderly while(list()=each()) to foreach calls in t3lib_tstemplate

Oliver Hader oh at inpublica.de
Tue Feb 26 14:40:03 CET 2008


This is a SVN patch request.

Problem:
There are many old while(list()=each()) calls in t3lib_tstemplate. Some 
of them are buggy becaus the internal array pointer has to be resetted 
then walking through an array by each().
One current side-problem is that in some PHP5 versions TypoScript 
constants are not substituted correctly - due to a missing reset($array).

Solution:
Change these iterations to use foreach() and clean up the whole class a bit.

Bugtracker references:
http://bugs.typo3.org/view.php?id=7669

Branch: Trunk


olly
-- 
Oliver Hader
http://inpublica.de/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0007669.patch
Type: text/x-patch
Size: 9809 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20080226/7d0e2393/attachment-0001.bin 


More information about the TYPO3-team-core mailing list