mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #6951 from sminnee/fix-2494
FIX: Don’t assume posix_getpwuid is available.
This commit is contained in:
commit
7e2f8d1f2d
@ -34,7 +34,7 @@ function getTempFolderUsername()
|
||||
if (!$user) {
|
||||
$user = getenv('USERNAME');
|
||||
}
|
||||
if (!$user && function_exists('posix_getuid')) {
|
||||
if (!$user && function_exists('posix_getpwuid') && function_exists('posix_getuid')) {
|
||||
$userDetails = posix_getpwuid(posix_getuid());
|
||||
$user = $userDetails['name'];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user