protected function merge($path)
    {
        // 5.2.3.  Merge Paths
        if ($this->host !== null && $this->path == '') {
            return '/'.$path;
        }

        $pos = strrpos($this->path, '/');
        if ($pos === false) {
            return $path;
        }
        return substr($this->path, 0, $pos + 1).$path;
    }
protected function merge($path)
    {
        // 5.2.3.  Merge Paths
        if ($this->host !== null && $this->path == '') {
            return '/'.$path;
        }

        $pos = strrpos($this->path, '/');
        if ($pos === false) {
            return $path;
        }
        return substr($this->path, 0, $pos + 1).$path;
    }
protected function merge ( $ path ) { // 5.2.3.  Merge Paths if ( $ this -> host !== null && $ this -> path == '' ) { return '/' . $ path ; } $ pos = strrpos ( $ this -> path , '/' ) ; if ( $ pos === false ) { return $ path ; } return substr ( $ this -> path , 0 , $ pos + 1 ) . $ path ; }
Merges the given path with the current URI's path.

\param string $path
Path to merge into the current path.

\retval string
Result of that merge.

\note
Despite its name, this method does not modify
the given $path nor the current object.
Merges the given path with the current URI s path .