private static function checkParsedUrl(array &$parsed)
{
$scheme =& $parsed['scheme'];
$user =& $parsed['user'];
$pass =& $parsed['pass'];
$host =& $parsed['host'];
$port =& $parsed['port'];
$path =& $parsed['path'];
$path = '/' . ltrim($path, '/');
// If / is missing for path.
$query =& $parsed['query'];
$fragment =& $parsed['fragment'];
$parsed = compact('scheme', 'user', 'pass', 'host', 'port', 'path', 'query', 'fragment');
}