<?php socket_get_option(Socket $socket, int $level, int $option): array|int|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') {