8000 minor #17267 Add hint about variables_order ini setting required (Dra… · xelaris/symfony-docs@067a41a · GitHub
[go: up one dir, main page]

Skip to content
8000

Commit 067a41a

Browse files
committed
minor symfony#17267 Add hint about variables_order ini setting required (DracoBlue)
This PR was submitted for the 6.1 branch but it was merged into the 6.2 branch instead. Discussion ---------- Add hint about variables_order ini setting required I read about _real environment variables always winning_, when using dotenv - but my setup did not work like this. And I noticed that my [variables_order](https://www.php.net/manual/en/ini.core.php#ini.variables-order) ini setting was set to the default of debian production settings, which does not expose `$_ENV` by default. Thus I added a sentence right behind stating that this depends on `$_ENV` superglobal being filled, which also needs [variables_order](https://www.php.net/manual/en/ini.core.php#ini.variables-order) to contain an uppercase `E`. Commits ------- ee02b68 Add hint about variables_order ini setting required
2 parents 4ac5b91 + ee02b68 commit 067a41a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

configuration.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -792,7 +792,9 @@ the right situation:
792792
but the overrides only apply to one environment.
793793

794794
*Real* environment variables always win over env vars created by any of the
795-
``.env`` files.
795+
``.env`` files. This behavior depends on
796+
`variables_order <http://php.net/manual/en/ini.core.php#ini.variables-order>`_ to
797+
contain an ``E`` to expose the ``$_ENV`` superglobal.
796798

797799
The ``.env`` and ``.env.<environment>`` files should be committed to the
798800
repository because they are the same for all developers and machines. However,

0 commit comments

Comments
 (0)
0