http://forge.typo3.org/http://forge.typo3.org/themes/typo3_forge/favicon/favicon.png?17058661692008-04-08T15:22:34ZTYPO3 ForgeTYPO3 Core - Bug #18309: Change elderly while(list()=each()) to foreach calls in t3lib_tstemplatehttp://forge.typo3.org/issues/18309?journal_id=475952008-04-08T15:22:34ZFranz Holzingerfranz@ttproducts.de
<ul></ul><p>Bug is still present in TYPO3 4.2 RC1:</p>
<p>class.t3lib_fe.php line 3229</p>
<pre><code>$headerArray = explode('|', $this->config['config']['additionalHeaders']);<br /> while(list(,$headLine)=each($headerArray)) {</code></pre>
<p>No reset of the array has been done here.</p> TYPO3 Core - Bug #18309: Change elderly while(list()=each()) to foreach calls in t3lib_tstemplatehttp://forge.typo3.org/issues/18309?journal_id=475962008-07-25T14:12:39ZBenni Mackbenni@typo3.org
<ul></ul><p>Hey Franz seems to be unrelated to this issue (different file). right?</p> TYPO3 Core - Bug #18309: Change elderly while(list()=each()) to foreach calls in t3lib_tstemplatehttp://forge.typo3.org/issues/18309?journal_id=475972008-07-25T15:07:13ZFranz Holzingerfranz@ttproducts.de
<ul></ul><p>Yes, there are probably many PHP files which could not work under some PHP version.<br />I have a serious problem with t3lib_div::trimExplode:</p>
<p>See t3lib_div:</p>
<p>Unfortunately t3lib_div:;:trimExplode does not make a reset any more in TYPO3 4.2.1. This is bad, because a following list(..) -while will not be executed. The PHP explode does a reset.</p>