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:
parent
aae8e3da57
commit
4348f4be99
@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user