Project

General

Profile

Actions

Bug #18312

closed

Constants are not correctly substituted on some PHP5 distributions

Added by Oliver Hader about 16 years ago. Updated about 15 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
Communication
Target version:
-
Start date:
2008-02-26
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.1
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

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.

(issue imported from #M7677)


Files

0007677.patch (825 Bytes) 0007677.patch Administrator Admin, 2008-02-26 15:45

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #18309: Change elderly while(list()=each()) to foreach calls in t3lib_tstemplateClosedOliver Hader2008-02-26

Actions
Actions #1

Updated by Oliver Hader about 16 years ago

The attached patch is for TYPO3 4.1.x only.

Actions #2

Updated by Franz Holzinger about 16 years ago

The bug description is not correct. These codelines are not necessary for substituting the constants. They are only for a check if some constants found inside setup have not been substituted. These will be shown only if if ($this->tt_track) is set.
So IMHO this if should be moved some lines above before the whole block you have changed.
You will see that all variables changed in this blocked are not used outside.
IMHO this can go into 4.1 because it cannot do any harm if it does not change other variable contents. This is only used and needed for debugging.

Actions #3

Updated by Benni Mack over 15 years ago

set version to 4.2.2 as maybe this one goes in the next bugfix version.

Actions #4

Updated by Oliver Hader about 15 years ago

Committed to SVN
  • TYPO3_4-1 (rev. 4742)
  • TYPO3_4-2 (rev. 4743)
Actions

Also available in: Atom PDF