[Foundation] Fixes parsing of env parameters
Signed-off-by: Jordi Boggiano <j.boggiano@seld.be>
This commit is contained in:
parent
de37e5225b
commit
a8fc5c62ff
@ -225,9 +225,9 @@ abstract class Kernel
|
||||
$parameters = array();
|
||||
foreach ($_SERVER as $key => $value)
|
||||
{
|
||||
if ('SYMFONY__' === $key = substr($key, 0, 9))
|
||||
if ('SYMFONY__' === substr($key, 0, 9))
|
||||
{
|
||||
$parameters[strtolower(str_replace('__', '.', $key))] = $value;
|
||||
$parameters[strtolower(str_replace('__', '.', substr($key, 9)))] = $value;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -505,9 +505,9 @@ abstract class Kernel
|
||||
$parameters = array();
|
||||
foreach ($_SERVER as $key => $value)
|
||||
{
|
||||
if ('SYMFONY__' === $key = substr($key, 0, 9))
|
||||
if ('SYMFONY__' === substr($key, 0, 9))
|
||||
{
|
||||
$parameters[strtolower(str_replace('__', '.', $key))] = $value;
|
||||
$parameters[strtolower(str_replace('__', '.', substr($key, 9)))] = $value;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user