Use $_ENV global instead of getenv()
leocavalcante opened this issue · 2 comments
leocavalcante commented
Use the $_ENV
magic global instead of the getenv()
function.
trollboy commented
out of curiousity why is this a bug? The only difference should be case sensitivity?
leocavalcante commented
For projects that loads environments variables from files, like symfony/dotenv
and vlucas/phpdotenv
, it only works if populated using putenv
which is disabled by default because it is not thread safe.