Skip to content

Commit 33a149a

Browse files
committed
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.
1 parent 397ee76 commit 33a149a

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

ext/posix/tests/posix_getpwnam_basic_01.phpt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@ User Group: PHPSP #phptestfestbrasil
1212
$uid = posix_geteuid();
1313
$user = posix_getpwuid($uid);
1414
$username = $user['name'];
15-
if (posix_getlogin() == false) {
16-
$username = false;
17-
}
1815
$info = posix_getpwnam($username);
1916
print_r($info);
2017
var_dump($username == $info['name']);

0 commit comments

Comments
 (0)