Bug 250185 - lang/php74: Fail posix_getpwnam, posix_getpwuid, ...
Summary: lang/php74: 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: Muhammad Moinur Rahman
Depends on:
Reported: 2020-10-07 17:13 UTC by Andrey Linkevich
Modified: 2022-03-04 06:15 UTC (History)
2 users (show)

See Also:

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]

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.
Comment 1 Muhammad Moinur Rahman freebsd_committer 2022-02-23 18:57:57 UTC
Is this reproducible in latest php74 ?
Comment 2 Andrey Linkevich 2022-02-24 06:10:53 UTC
Comment 3 Muhammad Moinur Rahman freebsd_committer 2022-03-04 02:09:49 UTC
Is this the fact in php80 and 81 too?
Comment 4 Andrey Linkevich 2022-03-04 06:15:50 UTC
Yes. php-8.0.16 and php-8.1.3