Fixes #2601 stream_socket_client()'s errstr/errnum

Get proper error message and code
Also match phps behaviour on raising a warning on connection issues