|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2021-07-03 19:26 UTC] danack@php.net
-Status: Open
+Status: Feedback
[2021-07-03 19:26 UTC] danack@php.net
[2021-07-11 04:22 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 11:00:02 2025 UTC |
Description: ------------ gethostbyaddr("109.197.205.75"), for example, returns four seemingly random bytes string (no, it's not a binary presentation of IPv4 address). Addresses with proper reverse DNS records still return them as expected, this one IP doesn't have it. Test script: --------------- <?php file_put_contents("/tmp/wtf.bin", gethostbyaddr("109.197.205.75")); ?> Expected result: ---------------- Should just return the IP if it cannot find a name for it. Actual result: -------------- garbage