[Process] Workaround buggy PHP warning

This commit is contained in:
Ben 2015-10-09 11:32:35 -04:00 committed by Tobias Schultze
parent 2406cc7b43
commit b1bd093f8a
1 changed files with 2 additions and 1 deletions

View File

@ -56,7 +56,8 @@ class ExecutableFinder
$searchPath = explode(PATH_SEPARATOR, ini_get('open_basedir'));
$dirs = array();
foreach ($searchPath as $path) {
if (is_dir($path)) {
// Silencing against https://bugs.php.net/69240
if (@is_dir($path)) {
$dirs[] = $path;
} else {
if (basename($path) == $name && is_executable($path)) {