Workaround another buggy PHP warning

Added error-suppression to the `is_executable($path)` call, too, per the bug noted just above.

The cited issue manifests as such without it:

```
ErrorException in ExecutableFinder.php line 63:
is_executable(): open_basedir restriction in effect. File(/usr/share/php) is not within the allowed path(s): (/usr/share/php:/tmp:/usr/share/phpmyadmin:/etc/phpmyadmin:/var/lib/phpmyadmin:/usr/local/zend/var/zray/extensions:/usr/local/zend/share:/usr/local/zend/var/plugins)
```
This commit is contained in:
Ben Johnson 2016-08-04 13:11:16 -04:00 committed by GitHub
parent aae8e3da57
commit 4348f4be99
1 changed files with 1 additions and 1 deletions

View File

@ -60,7 +60,7 @@ class ExecutableFinder
if (@is_dir($path)) {
$dirs[] = $path;
} else {
if (basename($path) == $name && is_executable($path)) {
if (basename($path) == $name && @is_executable($path)) {
return $path;
}
}