Skip to content

Commit

Permalink
Ignore PHP include_path; only look for commands in the same tree that…
Browse files Browse the repository at this point in the history
… phix is installed into. Improves phix on OSX
  • Loading branch information
stuartherbert committed Sep 13, 2011
1 parent 8c01691 commit fc0c2fa
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/php/Phix_Project/Phix/CommandsFinder.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,7 @@ public function __construct()

public function addPhpSearchPathToSearchList()
{
foreach (explode(\PATH_SEPARATOR, \get_include_path()) as $path)
{
// skip any folders in the include_path that do
// not actually exist
if (\is_dir(realpath($path)))
{
$this->addFolderToSearch($path);
}
}
$this->addFolderToSearch("@@PHP_DIR@@");
}

public function addFolderToSearch($folder)
Expand Down

0 comments on commit fc0c2fa

Please sign in to comment.