Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

shyim
Copy link
Contributor

@shyim shyim commented Oct 26, 2024

when I have a .env

foo=1

and then do:

export foo=my-value

symfony php -i | grep foo

I see it is set to 1. and this is wrong. When I export a env variable it should win

@tucksaun
Copy link
Member

tucksaun commented Dec 7, 2024

I’m wondering if instead we should not change the logic in Executor.Execute() to force the current environment to be appended instead of being preprended.
/cc @nicolas-grekas wdyt?

@nicolas-grekas
Copy link
Contributor

No opinion about the implementation, but the description of the issue looks correct to me, the precedence needs a fix.

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

Successfully merging this pull request may close these issues.

3 participants