com php-src: Remove posix_getlogin() check from pos ix_getpwnam() test: ext/posix/tests/posix_getpwna m_basic_01.phpt

From: Date: Wed, 10 Apr 2019 12:43:52 +0000
Subject: com php-src: Remove posix_getlogin() check from pos ix_getpwnam() test: ext/posix/tests/posix_getpwna m_basic_01.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-105621@lists.php.net to get a copy of this message
Commit: 33a149afba405ca39818cf14ad9d404bb5927d1d Author: Nikita Popov <nikita.ppv@gmail.com> Wed, 10 Apr 2019 14:43:52 +0200 Parents: 397ee767fd87f240683fead2a768179624ee25f0 Branches: PHP-7.4 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=33a149afba405ca39818cf14ad9d404bb5927d1d Log: 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. Changed paths: M ext/posix/tests/posix_getpwnam_basic_01.phpt Diff: diff --git a/ext/posix/tests/posix_getpwnam_basic_01.phpt b/ext/posix/tests/posix_getpwnam_basic_01.phpt index 23604b6..e45b6fa 100644 --- a/ext/posix/tests/posix_getpwnam_basic_01.phpt +++ b/ext/posix/tests/posix_getpwnam_basic_01.phpt @@ -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']);

« previous php.cvs (#105621) next »