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

Oliver Hader oh at inpublica.de
Tue Feb 26 15:53:39 CET 2008


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/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0007677.patch
Type: text/x-patch
Size: 825 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20080226/6ff07965/attachment.bin 


More information about the TYPO3-team-core mailing list