[php-src] PR #15568: Properly configure IPv4/v6 on Windows
| From: | cmb69 | Date: | Sat, 24 Aug 2024 12:19:56 +0000 |
| Subject: | [php-src] PR #15568: Properly configure IPv4/v6 on Windows | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-28171@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/15568
Author: cmb69
WSPiApi.h has been created in 2000, so we can safely assume that it is available everywhere
nowadays. Furthermore,
gai_strerror() is available regardless of whether there is IPv6
support.
---
This came up in #15567, and solves the easy part. Not using gai_strerror() on Windows,
because it is not thread-safe would be as simple as define PHP_GAI_STRERROR(x)
(php_win32_error_to_msg(x))if there wasn't a memory leak because the returned buffer
needs to be freed by the caller. Any suggestions on how to solve this in a clean way are welcome!