|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
Patchesphp_FreeBSD_sysconf (last revision 2020-10-07 14:30 UTC by dl at CyberPunk dot ru)Pull RequestsHistoryAllCommentsChangesGit/SVN commits
[2022-12-10 11:21 UTC] Hall565ertha at gmail dot com
[2023-06-14 10:41 UTC] wirededucationblog at gmail dot com
[2023-06-17 08:22 UTC] wisacon at wsn dot com
[2023-06-17 08:24 UTC] sa at ws dot com
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 08:00:02 2025 UTC |
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"]=> ...