1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00
Files
archived-php-src/main
Christoph M. Becker edcd6cc564 gai_strerror() is not thread-safe on Windows (GH-15568)
First we refactor to have only a single usage of `PHP_GAI_STRERROR()`
left; then we drop the macro in favor of calling the different
functions conditionally in an ad-hoc style.

This is necessary because the return value of `php_win32_error_to_msg`
needs to be freed by the caller.

The error messages are no more inline with other error messages, since
`gai_strerror()` apparently always appends a period and a space.

We also properly configure IPv4/v6 on Windows.  Since 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.
2024-09-08 16:16:40 +02:00
..
2024-05-19 22:57:08 +02:00
2024-06-24 19:57:28 +02:00
2024-05-29 07:04:05 +02:00
2024-05-29 07:04:05 +02:00
2023-07-25 17:54:14 +02:00
2024-06-09 14:23:41 +02:00
2024-06-10 23:03:49 +02:00
2024-06-01 17:12:42 +01:00
2024-02-08 12:08:07 +01:00
2023-01-16 12:27:33 +01:00
2023-01-16 12:27:33 +01:00