// libidn lib "idn"; #include function idn\utf8_to_ascii(string $host, string &$result, int $flags = 0) : int { let output = &NULL; let input = strval($host); let flags = intval($flags); set $result = to_string(*output); return to_int(idna_to_ascii_8z); free free(*output); } function idn\strerror(int $rc) : string { return to_string(idna_strerror); let rc = intval($rc); }