1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00
Files
archived-php-src/win32
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
..
2019-02-03 21:03:00 +01:00
2018-01-03 14:38:00 +01:00
2019-02-03 21:03:00 +01:00
2019-02-03 21:03:00 +01:00
2019-02-03 21:03:00 +01:00
2021-05-06 12:16:35 +02:00
2024-06-09 14:23:41 +02:00
2021-05-06 12:16:35 +02:00
2021-05-06 12:16:35 +02:00
2021-05-06 12:16:35 +02:00
2019-02-03 21:03:00 +01:00
2023-07-07 18:02:32 +02:00
2023-07-07 18:02:32 +02:00
2021-05-06 12:16:35 +02:00
2020-06-08 10:38:45 +02:00
2019-02-08 18:42:48 -08:00
2021-05-06 12:16:35 +02:00
2024-08-14 21:09:26 +02:00
2019-02-03 21:03:00 +01:00
2019-07-11 13:11:08 +02:00