public function isRelativePath($path)
    {
        if (strlen($path) === 0) {
            return true;
        }

        if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') {
            return !preg_match('/^[a-z]+\:\\\\/i', $path);
        }

        return strpos($path, DIRECTORY_SEPARATOR) !== 0;
    }
public function isRelativePath($path)
    {
        if (strlen($path) === 0) {
            return true;
        }

        if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') {
            return !preg_match('/^[a-z]+\:\\\\/i', $path);
        }

        return strpos($path, DIRECTORY_SEPARATOR) !== 0;
    }
public function isRelativePath ( $ path ) { if ( strlen ( $ path ) === 0 ) { return true ; } if ( strtoupper ( substr ( PHP_OS , 0 , 3 ) ) === 'WIN' ) { return ! preg_match ( '/^[a-z]+\:\\\\/i' , $ path ) ; } return strpos ( $ path , DIRECTORY_SEPARATOR ) !== 0 ; }
Return whether the path is relative path.

@param string $path path

@return bool true if the path is relative path, false otherwise
Return whether the path is relative path .