Bug #79558 [Com]: gethostbyaddr()'s problem with some characters

From: Date: Sat, 02 May 2020 18:47:47 +0000
Subject: Bug #79558 [Com]: gethostbyaddr()'s problem with some characters
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-226882@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=79558&edit=1 ID: 79558 Comment by: bugreports at gmail dot com Reported by: havijoori at protonmail dot com Summary: gethostbyaddr()'s problem with some characters Status: Open Type: Bug Package: *Network Functions Operating System: Linux PHP Version: 7.4.5 Block user comment: N Private report: N New Comment: > Dr\032Zhang's\032desktop.ds.uah.edu. this is pretty nosense - learn about https://www.punycoder.com/ or show the RFC which is *not* some draft allowing such chars as hostname Previous Comments: ------------------------------------------------------------------------ [2020-05-02 18:40:03] havijoori at protonmail dot com Description: ------------ gethostbyaddr function does not work properly if the hostname contains some characters. For example, gethostbyaddr("146.229.226.10") returns 146.229.226.10 but the correct answer is : $ dig -x 146.229.226.10 @8.8.8.8 +short Dr\032Zhang's\032desktop.ds.uah.edu. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=79558&edit=1

« previous php.bugs (#226882) next »