Library/Phalcon/Builder/Path.php
public function isAbsolutePath($path)
    {
        if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') {
            if (preg_match('/^[A-Z]:\\\\/', $path)) {
                return true;
            }
        } else {
            if (substr($path, 0, 1) == DIRECTORY_SEPARATOR) {
                return true;
            }
        }

        return false;
    }
public function isAbsolutePath($path)
    {
        if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') {
            if (preg_match('/^[A-Z]:\\\\/', $path)) {
                return true;
            }
        } else {
            if (substr($path, 0, 1) == DIRECTORY_SEPARATOR) {
                return true;
            }
        }

        return false;
    }
public function isAbsolutePath ( $ path ) { if ( strtoupper ( substr ( PHP_OS , 0 , 3 ) ) === 'WIN' ) { if ( preg_match ( '/^[A-Z]:\\\\/' , $ path ) ) { return true ; } } else { if ( substr ( $ path , 0 , 1 ) == DIRECTORY_SEPARATOR ) { return true ; } } return false ; }
Check if a path is absolute

@param string $path Path to check

@return bool
Check if a path is absolute