diff --git a/src/Symfony/Component/Finder/Shell/Shell.php b/src/Symfony/Component/Finder/Shell/Shell.php index a03e64366db66..0b01636c38c13 100644 --- a/src/Symfony/Component/Finder/Shell/Shell.php +++ b/src/Symfony/Component/Finder/Shell/Shell.php @@ -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)