classes/phing/system/io/UnixFileSystem.php
public function resolve($parent, $child)
    {
        if ($child === "") {
            return $parent;
        }

        if ($child{0} === '/') {
            if ($parent === '/') {
                return $child;
            }

            return $parent . $child;
        }

        if ($parent === '/') {
            return $parent . $child;
        }

        return $parent . '/' . $child;
    }
public function resolve($parent, $child)
    {
        if ($child === "") {
            return $parent;
        }

        if ($child{0} === '/') {
            if ($parent === '/') {
                return $child;
            }

            return $parent . $child;
        }

        if ($parent === '/') {
            return $parent . $child;
        }

        return $parent . '/' . $child;
    }
public function resolve ( $ parent , $ child ) { if ( $ child === "" ) { return $ parent ; } if ( $ child { 0 } === '/' ) { if ( $ parent === '/' ) { return $ child ; } return $ parent . $ child ; } if ( $ parent === '/' ) { return $ parent . $ child ; } return $ parent . '/' . $ child ; }
Resolve the child pathname string against the parent.
Both strings must be in normal form, and the result
will be in normal form.

@param string $parent
@param string $child

@return string
Resolve the child pathname string against the parent . Both strings must be in normal form and the result will be in normal form .