Bug #80198 [NEW]: Fail posix_getpwnam, posix_getpwuid, ...

From: Date: Wed, 07 Oct 2020 14:30:14 +0000
Subject: Bug #80198 [NEW]: Fail posix_getpwnam, posix_getpwuid, ...
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-229450@lists.php.net to get a copy of this message
From: dl at CyberPunk dot ru Operating system: All FreeBSD PHP version: Irrelevant Package: Unknown/Other Function Bug Type: Bug Bug description:Fail posix_getpwnam, posix_getpwuid, ... Description: ------------ All FreeBSD do not implement the function sysconf with arguments _SC_GETGR_R_SIZE_MAX , _SC_GETPW_R_SIZE_MAX. php use this sysconf() in: - main/main.c php_get_current_user() - main/fopen_wrappers.c php_fopen_primary_script() - ext/posix/posix.c posix_getpwnam(), posix_getpwuid(), posix_getgrnam(), posix_getgrgid() - ext/standard/filestat.c php_get_uid_by_name(), php_get_gid_by_name() The problem is the unsuccessful result for these functions. Eliminated is trivial. patch applied. Test script: --------------- <?php var_dump(posix_getpwuid(0)); ?> Current php-7.4.10 without patch bool(false) with patch array(7) { ["name"]=> string(4) "root" ["passwd"]=> ... -- Edit bug report at https://bugs.php.net/bug.php?id=80198&edit=1 -- Fix committed: https://bugs.php.net/fix.php?id=80198&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=80198&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=80198&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=80198&r=needscript Try newer version: https://bugs.php.net/fix.php?id=80198&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=80198&r=support Expected behavior: https://bugs.php.net/fix.php?id=80198&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=80198&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=80198&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=80198&r=globals PHP version support discontinued: https://bugs.php.net/fix.php?id=80198&r=phptooold Daylight Savings: https://bugs.php.net/fix.php?id=80198&r=dst IIS Stability: https://bugs.php.net/fix.php?id=80198&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=80198&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=80198&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=80198&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=80198&r=mysqlcfg

« previous php.bugs (#229450) next »