[TYPO3-core] RFC: Bug #7677: Constants are not correctly substituted on some PHP5 distributions

Steffen Kamper steffen at sk-typo3.de
Tue Feb 26 16:42:25 CET 2008


"Oliver Hader" <oh at inpublica.de> schrieb im Newsbeitrag 
news:mailman.1.1204037624.24389.typo3-team-core at lists.netfielders.de...
> This is a SVN patch request.
>
> Problem:
> On some PHP5 distributions it happens that constants are not correctly
> substituted in t3lib_tstemplate. The reason is the the array pointer is
> not reset to the beginning after an array was created by using the
> explode() function.
>
> Solution:
> Change the disposal of while(list()=each()) to foreach() instead.
>
> Comments:
> Thanks to Franz Holzinger for pointing out this issue.
> This patch is related to RFC #7523 but shall only be applied to TYPO3 
> 4.1.x!
>
> Bugtracker references:
> http://bugs.typo3.org/view.php?id=7677
>
> Branch: TYPO3_4-1 only
>
>
> olly
> -- 
> Oliver Hader
> http://inpublica.de/
>

Hi olly,
why don't use your complete cleanup for 4_1 as well? may be there are some 
other hidden issues in rest of list-loops

and sure +1 as it's simular to the other patch.

vg  Steffen 




More information about the TYPO3-team-core mailing list