Join GitHub today
[5.8] Only use $_SERVER for env variables #27462
I know we have the ability to cache the contents of the
If we no longer use
This is no longer the case for v3. I should probably update the readme.
Yes, actually we could do that instead if we wanted (https://github.com/vlucas/phpdotenv/blob/master/src/Environment/Adapter/ArrayAdapter.php). The side effect would be that nested env variables would break though, if they were loaded outside of the env file. We'd also need to find a good way to share this adapter instance.
That was actually never used, and is kinda badly named. The sever superglobal behaves as you might expect env to.
Yes, always, and not always in the env supergloal.
Yeh, so no changes there. :)