From 6972e1ed4d34e95459435f7293c61e59499db96e Mon Sep 17 00:00:00 2001 From: Mehdi Esmaeili Date: Fri, 9 Mar 2018 19:24:28 +0330 Subject: [PATCH] Fix is_executable warning exception The @ gets rid of the warning when this command fails. `is_executable(): open_basedir restriction in effect` --- src/Symfony/Component/Process/PhpExecutableFinder.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Component/Process/PhpExecutableFinder.php b/src/Symfony/Component/Process/PhpExecutableFinder.php index ef79065ff7e59..eb2834a85e4a6 100644 --- a/src/Symfony/Component/Process/PhpExecutableFinder.php +++ b/src/Symfony/Component/Process/PhpExecutableFinder.php @@ -65,7 +65,7 @@ public function find($includeArgs = true) } } - if (is_executable($php = PHP_BINDIR.('\\' === DIRECTORY_SEPARATOR ? '\\php.exe' : '/php'))) { + if (@is_executable($php = PHP_BINDIR.('\\' === DIRECTORY_SEPARATOR ? '\\php.exe' : '/php'))) { return $php; }