Skip to content

Commit

Permalink
silence is_executable call (matomo-org#15446)
Browse files Browse the repository at this point in the history
  • Loading branch information
diosmosis authored and jbuget committed Sep 26, 2020
1 parent ec4f352 commit 743fec9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/CliMulti/CliPhp.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ private function isValidPhpType($path)

private function getPhpCommandIfValid($path)
{
if (!empty($path) && is_executable($path)) {
if (!empty($path) && @is_executable($path)) {
if (0 === strpos($path, PHP_BINDIR) && $this->isValidPhpType($path)) {
return $path;
}
Expand Down

0 comments on commit 743fec9

Please sign in to comment.