8000 merged branch fabpot/exec-fix (PR #6882) · symfony/symfony@81aed8f · GitHub
[go: up one dir, main page]

Skip to content

Commit 81aed8f

Browse files
committed
merged branch fabpot/exec-fix (PR #6882)
This PR was submitted for the master branch but it was merged into the 2.2 branch instead (closes #6882). Commits ------- b8ef96e [Finder] fixed regression in the Finder component (it was possible to use it without using exec before, closes #6357) Discussion ---------- [Finder] fixed regression in the Finder component (it was possible to use it without using exec before, closes #6357) | Q | A | ------------- | --- | Bug fix? | yes (fixed a BC break) | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #6357 | License | MIT | Doc PR | n/a
2 parents df4188a + 3166e5b commit 81aed8f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Symfony/Component/Finder/Shell/Shell.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,11 @@ public function testCommand($command)
5252
{
5353
if (self::TYPE_WINDOWS === $this->type) {
5454
// todo: find a way to test if windows command exists
55-
return true;
55+
return false;
56+
}
57+
58+
if (!function_exists('exec')) {
59+
return false;
5660
}
5761

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

0 commit comments

Comments
 (0)
0