You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using Environment::get(), one can obtain variables not included in Environment::getAll(). This odd behavior is caused by EnvironmentVariable::getEnvironmentVariables() searching only $_ENV and $_SERVER, whereas EnvironmentVariable::getEnvironmentVariable() searches $_ENV, $_SERVER, and getenv().
I suggest including a call to getenv() inside of EnvironmentVariable::getEnvironmentVariables() for the purpose of pulling in any variables that may not be included in $_ENV (such as when variables_order is set to "GPCS" thus excluding $_ENV).
I am going to make this code change and submit a PR.
The text was updated successfully, but these errors were encountered:
karlwilbur
changed the title
getenv values missing from EnvironmentVariable::getEnvironmentVariables()getenv() values missing from EnvironmentVariable::getEnvironmentVariables()Jul 29, 2020
Using
Environment::get()
, one can obtain variables not included inEnvironment::getAll()
. This odd behavior is caused byEnvironmentVariable::getEnvironmentVariables()
searching only$_ENV
and$_SERVER
, whereasEnvironmentVariable::getEnvironmentVariable()
searches$_ENV
,$_SERVER
, andgetenv()
.I suggest including a call to
getenv()
inside ofEnvironmentVariable::getEnvironmentVariables()
for the purpose of pulling in any variables that may not be included in$_ENV
(such as whenvariables_order
is set to"GPCS"
thus excluding$_ENV
).I am going to make this code change and submit a PR.
The text was updated successfully, but these errors were encountered: