Skip to content

Commit

Permalink
fixed regression in the Finder component (it was possible to use it w…
Browse files Browse the repository at this point in the history
…ithout using exec before, closes #6357)
  • Loading branch information
fabpot committed Feb 4, 2013
1 parent df4188a commit 3166e5b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Symfony/Component/Finder/Shell/Shell.php
Expand Up @@ -52,7 +52,11 @@ public function testCommand($command)
{
if (self::TYPE_WINDOWS === $this->type) {
// todo: find a way to test if windows command exists
return true;
return false;
}

if (!function_exists('exec')) {
return false;
}

// todo: find a better way (command could not be available)
Expand Down

0 comments on commit 3166e5b

Please sign in to comment.