53 if ($this->default_port == $uri->port) $uri->port = null;
56 if (!$this->may_omit_host &&
58 (!is_null($uri->scheme) && ($uri->host ===
'' || is_null($uri->host))) ||
62 (is_null($uri->scheme) && $uri->host ===
'')
65 if (is_null($uri->scheme)) {
66 if (substr($uri->path, 0, 2) !=
'//') {
75 $host =
$config->get(
'URI.Host');
76 if (!is_null($host)) {