Project

General

Profile

Actions

Bug #82304

closed

ConfigurationManager::writeLocalConfiguration breaks log writer configuration

Added by Thorsten Kahler about 7 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
System/Bootstrap/Configuration
Start date:
2017-09-05
Due date:
% Done:

100%

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

Description

Method \TYPO3\CMS\Core\Configuration\ConfigurationManager::writeLocalConfiguration() cleans up $TYPO3_CONF_VARS before writing to typo3conf/LocalConfiguration.php. It uses the cleanup method ArrayUtility::renumberKeysToAvoidLeapsIfKeysAreAllNumeric() which rewrites the indices of numerically indexed arrays.

This cleanup breaks $TYPO3_CONF_VARS['LOG']['writerConfiguration'] because the configuration uses log level constants which represent integers (see class \TYPO3\CMS\Core\Log\LogLevel) as indices.

Either exceptions for those cleanups must be configurable or (better) this optimization attempt should be dropped at all.


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #44938: LocalConfiguration extListArray adds keys if extension is uninstalledClosedJan-Erik Revsbech2013-01-29

Actions
Actions

Also available in: Atom PDF