This changeset improves errno detection for failed connections without ext-sockets. Reporting the errstr already works on most platforms even when ext-sockets is not installed, consistently reporting the correct errno previously required ext-sockets. With these changes applied, we now also take the errno constants from ext-pcntl and ext-posix into account. This is particularly useful for lightweight container images (Docker) that by default come with ext-sockets and ext-pcntl disabled but ext-posix enabled. All extensions remain entirely optional.
This changeset improves errno detection for failed connections without ext-sockets. Reporting the errstr already works on most platforms even when
ext-sockets
is not installed, consistently reporting the correct errno previously requiredext-sockets
. With these changes applied, we now also take the errno constants fromext-pcntl
andext-posix
into account. This is particularly useful for lightweight container images (Docker) that by default come withext-sockets
andext-pcntl
disabled butext-posix
enabled. All extensions remain entirely optional.Link dump:
Builds on top of #271, #267, #266 and others