mirror of
https://github.com/php/php-src.git
synced 2024-11-30 13:25:43 +08:00
Remove posix_getlogin() check from posix_getpwnam() test
It doesn't make sense to pass false to posix_getpwnam(). I'm not sure what exactly this is guarding against, but it won't work in this form.
This commit is contained in:
parent
397ee767fd
commit
33a149afba
@ -12,9 +12,6 @@ User Group: PHPSP #phptestfestbrasil
|
||||
$uid = posix_geteuid();
|
||||
$user = posix_getpwuid($uid);
|
||||
$username = $user['name'];
|
||||
if (posix_getlogin() == false) {
|
||||
$username = false;
|
||||
}
|
||||
$info = posix_getpwnam($username);
|
||||
print_r($info);
|
||||
var_dump($username == $info['name']);
|
||||
|
Loading…
Reference in New Issue
Block a user