php-src icon indicating copy to clipboard operation
php-src copied to clipboard

gethostbyaddr still not working in 8.1.1

Open RobertEcker opened this issue 4 years ago • 4 comments

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

RobertEcker avatar Dec 19 '21 22:12 RobertEcker

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.

iluuu1994 avatar Dec 19 '21 23:12 iluuu1994

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?

iluuu1994 avatar Dec 19 '21 23:12 iluuu1994

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

iluuu1994 avatar Dec 19 '21 23:12 iluuu1994

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).

cmb69 avatar Dec 19 '21 23:12 cmb69