[ticket/10866] Use parse_url()

Use parse_url() to parse URL, change functions
that rely on it to work with new format

PHPBB3-10866
[ticket/10866] Remove invalid test

Schema-relative URL cannot have port number

PHPBB3-10866