Issue Task Rejected

#99634Replace typoscript getEnv with $_ENV

TYPO3 GmbH TYPO3com 01/19/23, 10:02 updated 01/22/24, 12:20

Description

As per https://github.com/vlucas/phpdotenv#putenv-and-getenv it’s discouraged to use getenv instead of $_ENV due to not being threadsafe. Furthermore using $_ENV instead of getenv will avoid a bug(?) that currently happens with symfony/dotenv where getenv will not return the env variable.

This change aims to allow usage of env in typoscript when using symfony/dotenv

This issue was automatically created from https://github.com/TYPO3/typo3/pull/412

Reviews 1