[ticket/10866] Fixes for parse_url() wrapper

Fixes for parse_url() wrapper for older PHP

PHPBB3-10866