[Process] Workaround buggy PHP warning
This commit is contained in:
parent
2406cc7b43
commit
b1bd093f8a
|
@ -56,7 +56,8 @@ class ExecutableFinder
|
||||||
$searchPath = explode(PATH_SEPARATOR, ini_get('open_basedir'));
|
$searchPath = explode(PATH_SEPARATOR, ini_get('open_basedir'));
|
||||||
$dirs = array();
|
$dirs = array();
|
||||||
foreach ($searchPath as $path) {
|
foreach ($searchPath as $path) {
|
||||||
if (is_dir($path)) {
|
// Silencing against https://bugs.php.net/69240
|
||||||
|
if (@is_dir($path)) {
|
||||||
$dirs[] = $path;
|
$dirs[] = $path;
|
||||||
} else {
|
} else {
|
||||||
if (basename($path) == $name && is_executable($path)) {
|
if (basename($path) == $name && is_executable($path)) {
|
||||||
|
|
Reference in New Issue