-
Notifications
You must be signed in to change notification settings - Fork 7.9k
get rid of inet_aton and inet_ntoa #6944
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
Ready for review and for net_ntoa and inet_aton
|
I'm also wondering if we should just have HAVE_INET_PTON/HAVE_INET_NTOP a hard build requirement. It's part of POSIX and supported by Linux, macOS and Windows at least. Are there any known systems that don't have it? Getting rid of that super dubious lock would be nice. |
Just in case anybody executes these test in parallel on PHP 7.4. (cherry picked from commit b4ffe54) Closes phpGH-6943.
ad9e1da
to
011b0be
Compare
use inet_ntop iand inet_pton where available standardize buffer size
011b0be
to
4dc8b3c
Compare
Seems to be in glibc since 2.2.5... (so even in old RHEL-5) |
Merged in f9547f2 |
Some distribution may consider inet_aton, inet_ntoa, inet_addr... as deprecated, and their usage discouraged