You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@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:
Note The ability to perform reverse DNS lookups using the getnameinfo function is convenient, but such lookups are considered inherently unreliable, and should be used only as a hint.
Activity
Gemorroj commentedon Dec 10, 2021
I can confirm issue on Win10 x64
RobertEcker commentedon Dec 10, 2021
it also depends somehow from the previous (working) result
damianwadley commentedon Dec 10, 2021
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.
Fix GH-7748: gethostbyaddr outputs binary string
Merge branch 'PHP-8.1'
pierrejoye commentedon Feb 12, 2022
@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:
Note The ability to perform reverse DNS lookups using the getnameinfo function is convenient, but such lookups are considered inherently unreliable, and should be used only as a hint.