[php-src] Issue #19248: Use strerror_r instead of strerror in stream and networking code
| From: | bukka | Date: | Sat, 26 Jul 2025 13:14:03 +0000 |
| Subject: | [php-src] Issue #19248: Use strerror_r instead of strerror in stream and networking code | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-250498@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/19248
Author: bukka
### Description
When investigating #9261 that networking and stream code uses
strerror which might
potentially cause issue on ZTS. The should be replaced with strerror_r if available.
There is already check for the availibility of strerror_r introduced in https://github.com/php/php-src/pull/11882 so it
just needs to be implemented to the stream and networking code (primarily to
php_socket_strerror and php_socket_error_str).
### PHP Version
```plain
PHP 8.3+
```
### Operating System
_No response_