parse_url  may return false

#2260, #2261 (which are identical)