[php-src] Issue #7748: gethostbyaddr outputs binary string

From: Date: Fri, 10 Dec 2021 13:06:23 +0000
Subject: [php-src] Issue #7748: gethostbyaddr outputs binary string
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-238312@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/7748 Author: RobertEcker ### Description PHP 8.1.0 The following code: ```php <?php var_dump(gethostbyaddr('89.222.225.0')); var_dump(gethostbyaddr('192.88.99.1')); ``` Resulted in this output: ``` ![Snap1](https://user-images.githubusercontent.com/6156052/145578369-aa7549ea-ddf0-432e-be6d-648bfded9668.jpg) ``` But I expected this output instead: ``` string(12) "89.222.225.0'" (which is still shown when I use PHP 8.0.3) ``` ### PHP Version PHP 8.1.0 ### Operating System Windows 10

« previous php.bugs (#238312) next »