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.
Link dump: