Skip to content

Use strerror_r instead of strerror in stream and networking code #19248

@bukka

Description

@bukka

Description

When investigating #9261 that networking and stream code uses strerror which might potentially cause issue on ZTS. It should be replaced with strerror_r if available.

There is already check for the availibility of strerror_r introduced in #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

PHP 8.3+

Operating System

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions