-
Notifications
You must be signed in to change notification settings - Fork 7.7k
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
gethostbyaddr outputs binary string #7748
Comments
I can confirm issue on Win10 x64
|
it also depends somehow from the previous (working) result
|
First thing I see is in the new usage of getnameinfo: the code checks <0 for error but MSDN and getnameinfo(3) lists it as merely returning non-zero. |
* PHP-8.1: Fix GH-7748: gethostbyaddr outputs binary string
@remicollet what was the reason to use getnameinfo in php_gethostbyaddr instead of gethostbyaddr (which is exactly what this function does)? I can't find discussion or bug # about that change. I do like this little quote from various OSes doc, incl. windows one:
|
Description
PHP 8.1.0
The following code:
Resulted in this output:
But I expected this output instead:
PHP Version
PHP 8.1.0
Operating System
Windows 10 (x64)
The text was updated successfully, but these errors were encountered: