Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
[PhpunitBridge] Read environment variable from superglobals#31954
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
[PhpunitBridge] Read environment variable from superglobals#31954
Uh oh!
There was an error while loading.Please reload this page.
Conversation
2a955f8 toafe721eComparegreg0ire commentedJun 8, 2019
@nicolas-grekas should I do something similar here: symfony/src/Symfony/Bridge/PhpUnit/bootstrap.php Lines 38 to 40 in1dce522
? |
greg0ire commentedJun 8, 2019
Please resolve#31955 first |
nicolas-grekas commentedJun 8, 2019
I'd propose merging this as a bug fix on 4.3, which is the very of Dotenv that relates here, WDYT? |
greg0ire commentedJun 8, 2019
It can be viewed as a bug if you use the bridge v4.3 and a recent version of dotenv so yeah, let's do this :) |
afe721e to0e832caCompare0e832ca toe9971b5Comparegreg0ire commentedJun 8, 2019
Done. What about my question about the bootstrap file above? |
nicolas-grekas commentedJun 8, 2019
Let's update the bootstrap file too. |
e9971b5 to936cb7dComparegreg0ire commentedJun 8, 2019
I should really test before I push 😓 |
greg0ire commentedJun 8, 2019
Apparently having the class not defined at all is a requirement in disabled mode, so let's do this. |
e7e3593 to72cb77aComparegreg0ire commentedJun 8, 2019
Is setting via |
72cb77a to1fe6eb2Comparetgalopin commentedJun 23, 2019
IMHO, this is quite important to finish and release as if I understand correctly, for now there is no way to configure the SYMFONY_DEPRECATIONS_HELPER variable except by using a real env var (quite cumbersome and the documentation is very misleading on this subject if that's true). Or am I missing something? I'd be happy to give a hand to finish this if needed. |
greg0ire commentedJun 23, 2019
Thanks for proposing your help@tgalopin . To me, this could very well be finished already, the only doubts I have are sum up in my previous comment.@nicolas-grekas what do you think the next steps are regarding this? |
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
1fe6eb2 to8dea1eeComparegreg0ire commentedJun 23, 2019
I do not reproduce the build failure locally (I use php 7.3). They are probably due to autoloading conflicts, as usual. |
Uh oh!
There was an error while loading.Please reload this page.
8dea1ee to1bbfbc4Comparefabpot commentedJun 26, 2019
Can you have a look at the broken tests? |
be0ecf5 to3945785CompareThe Dotenv component has recently been switched to using superglobalsinstead of putenv(). Let us support both and give priority tosuperglobals.Closessymfony#31857
3945785 to88cfcb5Compare
nicolas-grekas left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
I reverted the changes onbootstrap.php:Dotenv always runs after the file is executed so that they were not needed. I also simplified the code:false already does what we planned fornull to do.
Tests will pass once this is merged up to master.
nicolas-grekas commentedJun 26, 2019
Thank you@greg0ire. |
…s (greg0ire)This PR was merged into the 4.3 branch.Discussion----------[PhpunitBridge] Read environment variable from superglobals| Q | A| ------------- | ---| Branch? | 4.3| Bug fix? | yes| New feature? | no| BC breaks? | no| Deprecations? | no| Tests pass? | yes| Fixed tickets |#31857| License | MIT| Doc PR | n/aThe Dotenv component has recently been switched to using superglobalsinstead of putenv(). Let us support both and give priority tosuperglobals.Commits-------88cfcb5 [PhpunitBridge] Read environment variable from superglobals
Uh oh!
There was an error while loading.Please reload this page.
The Dotenv component has recently been switched to using superglobals
instead of putenv(). Let us support both and give priority to
superglobals.