48     public abstract function doValidate(&$uri, $config, $context);
 
   58     public function validate(&$uri, $config, $context) {
 
   59         if ($this->default_port == $uri->port) $uri->port = null;
 
   62         if (!$this->may_omit_host &&
 
   64             (!is_null($uri->scheme) && ($uri->host === 
'' || is_null($uri->host))) ||
 
   68              (is_null($uri->scheme) && $uri->host === 
'')
 
   71                 if (is_null($uri->scheme)) {
 
   72                     if (substr($uri->path, 0, 2) != 
'//') {
 
   81                 $host = $config->get(
'URI.Host');
 
   82                 if (!is_null($host)) {
 
   90         return $this->
doValidate($uri, $config, $context);