Skip to content

Commit

Permalink
Merge pull request #10299 from edwilde/patch-14
Browse files Browse the repository at this point in the history
Fix error when `posix_getpwuid` returns false
  • Loading branch information
GuySartorelli authored May 5, 2022
2 parents d765cf6 + 0b6b2d1 commit baaa323
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Core/TempFolder.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public static function getTempFolderUsername()
$user = '';
if (function_exists('posix_getpwuid') && function_exists('posix_getuid')) {
$userDetails = posix_getpwuid(posix_getuid());
$user = $userDetails['name'];
$user = $userDetails['name'] ?? false;
}
if (!$user) {
$user = Environment::getEnv('APACHE_RUN_USER');
Expand Down

0 comments on commit baaa323

Please sign in to comment.