Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6972e1e

Browse files
committed
Fix is_executable warning exception
The @ gets rid of the warning when this command fails. `is_executable(): open_basedir restriction in effect`
1 parent d79c528 commit 6972e1e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Process/PhpExecutableFinder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public function find($includeArgs = true)
6565
}
6666
}
6767

68-
if (is_executable($php = PHP_BINDIR.('\\' === DIRECTORY_SEPARATOR ? '\\php.exe' : '/php'))) {
68+
if (@is_executable($php = PHP_BINDIR.('\\' === DIRECTORY_SEPARATOR ? '\\php.exe' : '/php'))) {
6969
return $php;
7070
}
7171

0 commit comments

Comments
 (0)