[php-src] Issue #7748: gethostbyaddr outputs binary string
| From: | noreply@php.net | 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:
```

```
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