Bug 250185 - PHP: Fail posix_getpwnam, posix_getpwuid, ...
Summary: PHP: Fail posix_getpwnam, posix_getpwuid, ...
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-10-07 17:13 UTC by Andrey Linkevich
Modified: 2020-10-07 17:13 UTC (History)
0 users

See Also:


Attachments
php_FreeBSD_sysconf (3.17 KB, patch)
2020-10-07 17:13 UTC, Andrey Linkevich
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andrey Linkevich 2020-10-07 17:13:34 UTC
Created attachment 218596 [details]
php_FreeBSD_sysconf

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.