Issue Feature Closed

#98452Allow to disable CLI check by configuration

Jonas Wolf 09/27/22, 16:27 updated 03/30/25, 20:36

Description

There should be a configuration option to disable the CLI check found in \TYPO3\CMS\Core\Console\CommandApplication->checkEnvironmentOrDie()
(https://github.com/TYPO3/typo3/blob/main/typo3/sysext/core/Classes/Console/CommandApplication.php#L165)

Reason: Some hosters (e.g. Strato) supply PHP binaries that report a SAPI other than “cli” even when called from a command line. In these environments, the CLI currently can’t be used at all.

If there is no technical reason why this check is necessary, administrators should be able to chose whether to have the check in place or not.

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.