<?php socket_import_stream(resource $stream): Socket|false
<?php if (\function_exists('socket_import_stream')) { $socket = \socket_import_stream($stream); $errno = \socket_get_option($socket, \SOL_SOCKET, \SO_ERROR); $errstr = \socket_strerror($errno); } elseif (\PHP_OS === 'Linux') {