-
Notifications
You must be signed in to change notification settings - Fork 7.8k
Support sysconf(_SC_GETPW_R_SIZE_MAX) == -1 #13922
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense. That might not only solve musl but also an old FreeBSD issue if I recall well.
Closing this one in favor of #13876 |
Reopening because #13876 has stalled. |
Changed the target branch to PHP-8.2, like #13921. I will merge if there is a new approval, since this was only approved for master. |
Yes. At first glance it looks like feature improvement, but it s a fix as for me. |
sysconf() can return -1 for _SC_GETPW_R_SIZE_MAX and related configuration. This is allowed by posix and is not necessarily an error. In particular, musl always returns -1.
This is a followup of #13921