gethostbyaddr still not working in 8.1.1
Description
The following code:
D:\>php -v
PHP 8.1.1 (cli) (built: Dec 15 2021 10:31:43) (ZTS Visual C++ 2019 x64)
Copyright (c) The PHP Group
Zend Engine v4.1.1, Copyright (c) Zend Technologies
D:\>php
<?php
$ip = '192.88.99.1';
var_dump( gethostbyaddr($ip) );
^Z
string(6) "p("
gethostbyaddr still not working for me - I expect not a binary string (I expect empty string '')
PHP Version
PHP 8.1.1
Operating System
Windows 10
The fix for https://github.com/php/php-src/issues/7748 didn't make it into the 8.1.1 release. It should be in 8.1.2.
Sorry, I was wrong. The NEWS do mention it should be there. @cmb69 Can you re-test it with the new 8.1.1 release?
It's actually not there yet in PHP 8.1.1. Sorry for the noise, I'll double check next time.
https://www.php.net/ChangeLog-8.php#8.1.1
Yeah, right, that fix was way too late for PHP 8.1.1, but it is supposed to be available as of PHP 8.1.2 (scheduled for Jan, 20th; long delay due to the holiday seasons; please be patient; I think that @shivammathur provides snapshot builds, though).