[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 15:42:12 CET 2008
Hi,
Oliver Hader schrieb:
> 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
An additional note:
The method t3lib_tstemplate::checkFile() was marked as deprecated since
SVN was used for version control (rev. 20). That's the reason why I
removed it for TYPO3 4.2.
olly
--
Oliver Hader
http://inpublica.de/
More information about the TYPO3-team-core
mailing list