Skip to content

Commit 84491b3

Browse files
committed
Merge branch '5.4' into 6.3
* 5.4: fix tests Remove full DSNs from exception messages [Yaml] Fix uid binary parsing [HttpKernel] Preventing error 500 when function putenv is disabled [PasswordHasher][Tests] Do not invoke methods with additional arguments in tests remove invalid group Fix block scalar array parsing
2 parents 1d66a79 + 75338c6 commit 84491b3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Kernel.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -748,7 +748,9 @@ private function preBoot(): ContainerInterface
748748
$this->startTime = microtime(true);
749749
}
750750
if ($this->debug && !isset($_ENV['SHELL_VERBOSITY']) && !isset($_SERVER['SHELL_VERBOSITY'])) {
751-
putenv('SHELL_VERBOSITY=3');
751+
if (\function_exists('putenv')) {
752+
putenv('SHELL_VERBOSITY=3');
753+
}
752754
$_ENV['SHELL_VERBOSITY'] = 3;
753755
$_SERVER['SHELL_VERBOSITY'] = 3;
754756
}

0 commit comments

Comments
 (0)