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

From: Date: Fri, 10 Dec 2021 13:54:09 +0000
Subject: [php-src] Issue #7748: gethostbyaddr outputs binary string
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-238313@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/7748 Comment Author: Gemorroj I can confirm issue on Win10 x64 ``` PS C:\Users\wapin> php -v PHP 8.0.13 (cli) (built: Nov 16 2021 21:58:37) ( ZTS Visual C++ 2019 x64 ) Copyright (c) The PHP Group Zend Engine v4.0.13, Copyright (c) Zend Technologies with Zend OPcache v8.0.13, Copyright (c), by Zend Technologies with Xdebug v3.1.2, Copyright (c) 2002-2021, by Derick Rethans PS C:\Users\wapin> php -a Interactive shell php > var_dump(gethostbyaddr('89.222.225.0')); php shell code:1: string(12) "89.222.225.0" php > var_dump(gethostbyaddr('192.88.99.1')); php shell code:1: string(11) "192.88.99.1" ``` ``` PS S:\php81> ./php -v PHP 8.1.0 (cli) (built: Nov 23 2021 21:48:28) (ZTS Visual C++ 2019 x64) Copyright (c) The PHP Group Zend Engine v4.1.0, Copyright (c) Zend Technologies PS S:\php81> ./php -a Interactive shell php > var_dump(gethostbyaddr('89.222.225.0')); string(0) "" php > var_dump(gethostbyaddr('192.88.99.1')); string(0) "" ```

« previous php.bugs (#238313) next »