Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use phpdotenv methods instead of getenv/putenv #7425

Merged
merged 1 commit into from
Feb 16, 2015

Conversation

bioteck
Copy link
Contributor

@bioteck bioteck commented Feb 14, 2015

There is a bug with functions getenv() and putenv() if PHP is thread-safe. But phpdotenv has methods that don't only use these functions to retrieve and modify environment variables but also $_ENV and $_SERVER, which are not affected by this bug.

More details here : #7354

@@ -16,6 +16,8 @@ public function bootstrap(Application $app)
{
try
{
Dotenv::makeMutable();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change is unrelated. Please send it separately.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agree

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I explained here why I've added Dotenv::makeMutable() before Dotenv::load() : 866a8cf

@taylorotwell taylorotwell merged commit c7c85b1 into laravel:5.0 Feb 16, 2015
@taylorotwell
Copy link
Member

This had to be reverted due to some issues.

866a8cf#commitcomment-9767647

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants