Skip to content

Commit

Permalink
Bootstrapping: make sure, $_SERVER contains all values of $_ENV - fol…
Browse files Browse the repository at this point in the history
  • Loading branch information
brusch authored Mar 11, 2024
1 parent 7794d63 commit 3b9af52
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/Bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,9 @@ public static function bootstrap(): void

public static function defineConstants(): void
{
// make sure $_SERVER contains all values of $_ENV
$_SERVER += $_ENV;

// load custom constants
$customConstantsFile = PIMCORE_PROJECT_ROOT . '/config/pimcore/constants.php';
if (file_exists($customConstantsFile)) {
Expand Down

0 comments on commit 3b9af52

Please sign in to comment.