Skip to content

Commit

Permalink
Merge pull request #284 from SpacefulSpecies/master
Browse files Browse the repository at this point in the history
fix overload falsy apache variables
  • Loading branch information
vlucas committed Aug 22, 2018
2 parents 8abb4f9 + fa1a24d commit 54d599d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Loader.php
Expand Up @@ -374,7 +374,7 @@ public function setEnvironmentVariable($name, $value = null)

// If PHP is running as an Apache module and an existing
// Apache environment variable exists, overwrite it
if (function_exists('apache_getenv') && function_exists('apache_setenv') && apache_getenv($name)) {
if (function_exists('apache_getenv') && function_exists('apache_setenv') && apache_getenv($name) !== false) {
apache_setenv($name, $value);
}

Expand Down

0 comments on commit 54d599d

Please sign in to comment.