Bug 250185

Summary: PHP: Fail posix_getpwnam, posix_getpwuid, ...
Product: Ports & Packages Reporter: Andrey Linkevich <dl>
Component: Individual Port(s)Assignee: Juraj Lutter <otis>
Status: New ---    
Severity: Affects Many People CC: otis
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   
Description Flags
php_FreeBSD_sysconf none

Description Andrey Linkevich 2020-10-07 17:13:34 UTC
Created attachment 218596 [details]

I am opened the problem https://bugs.php.net/bug.php?id=80198 .
Duplicate for you:

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.