Skip to content

Commit

Permalink
[fixes #10659085] Analyzer locator broken
Browse files Browse the repository at this point in the history
The analyzer locator code is broken on windows, because the current
implementation only accepts the unix path separator character.
  • Loading branch information
manuelpichler committed Mar 2, 2011
1 parent 68e3a18 commit 0101798
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.properties
@@ -1,6 +1,6 @@
project.dir =
project.name = pdepend
project.version = 0.10.2
project.version = 0.10.3
project.stability = stable

coding.standard = PEAR
Expand Down
Expand Up @@ -121,8 +121,12 @@ private function _find()
{
$result = array();

preg_match_all('(:?(([a-z]+://)?[^:]+):?)i', get_include_path(), $matches);
$paths = $matches[1];
if (0 === stripos(PHP_OS, 'win')) {
$paths = explode(PATH_SEPARATOR, get_include_path());
} else {
preg_match_all('(:?(([a-z]+://)?[^:]+):?)i', get_include_path(), $match);
$paths = $match[1];
}

foreach ($paths as $path) {
$dir = $path.'/PHP/Depend/Metrics/';
Expand Down

0 comments on commit 0101798

Please sign in to comment.