Bug #19845
closedDuplicated values in localconf.php (typo3conf) - compat_version
0%
Description
I found an annoying "bug" in Install Tool/localconf.php when doing some upgrades (from 4.1.x to 4.2.x, from 4.2.x to 4.3.dev). It's not something that I find in every upgraded installations, but in some.
The "bug" is a duplicate of ["SYS"]["compat_version"]. How and when the duplicate is made, i don't know. All off these installations has a history back to 4.0.x and older. The annoying part is when using the upgrade wizard in the Install Tool, it looks like only the first occurence of ["SYS"]["compat_version"] is changed, but it's the second one which are read back to the TYPO3 backend/Install Tool. Ant therefore tells you both in backend and Install Tool that you havent't upgraded.
I doesn't look like this "bug" do any harm, or gives problems.
The first occurence is always written ['SYS']['compat_version'] (single quotes). The second i always written ["SYS"]["compat_version"] (double qoutes). No other variables in localconf.php in tested/checked installations has "double quotes"
Solution should prabably be checking for ["SYS"]["compat_version"] (with double quotes) and comment out/delete this line.
I have tagged the bug to TYPO3 4.2 and above. Reason, I can't remenber this problem upgrading from 4.0.x to 4.1.x. I also don't have the duplicate value in installations done after the release of 4.1.0
(issue imported from #M10175)
Files