Skip to content

Commit

Permalink
[Config] fixed 'scheme://' not detected as absolute path
Browse files Browse the repository at this point in the history
This also allows the use of configuration files stored in phar files.
  • Loading branch information
ocubom committed Dec 8, 2011
1 parent a2faec1 commit 4ce2661
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions FileLocator.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ private function isAbsolutePath($file)
&& $file[1] == ':'
&& ($file[2] == '\\' || $file[2] == '/')
)
|| null !== parse_url($file, PHP_URL_SCHEME)
) {
return true;
}
Expand Down

0 comments on commit 4ce2661

Please sign in to comment.