We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a12dd0 commit de4a4d0Copy full SHA for de4a4d0
src/Loader.php
@@ -335,7 +335,9 @@ public function setEnvironmentVariable($name, $value = null)
335
return;
336
}
337
338
- if (function_exists('apache_setenv') && function_exists('apache_getenv') && apache_getenv($name)) {
+ // If PHP is running as an Apache module and an existing
339
+ // Apache environment variable exists, overwrite it
340
+ if (function_exists('apache_setenv') && apache_getenv($name)) {
341
apache_setenv($name, $value);
342
343
0 commit comments