diff --git a/ExecutableFinder.php b/ExecutableFinder.php index f044ebc0..2f0f68c1 100644 --- a/ExecutableFinder.php +++ b/ExecutableFinder.php @@ -69,7 +69,7 @@ public function find(string $name, string $default = null, array $extraDirs = [] } $command = '\\' === \DIRECTORY_SEPARATOR ? 'where' : 'command -v'; - if (\function_exists('exec') && ($executablePath = strtok(@exec($command.' '.escapeshellarg($name)), \PHP_EOL)) && is_executable($executablePath)) { + if (\function_exists('exec') && ($executablePath = strtok(@exec($command.' '.escapeshellarg($name)), \PHP_EOL)) && @is_executable($executablePath)) { return $executablePath; } diff --git a/Pipes/WindowsPipes.php b/Pipes/WindowsPipes.php index 637c8f38..8033442a 100644 --- a/Pipes/WindowsPipes.php +++ b/Pipes/WindowsPipes.php @@ -140,7 +140,7 @@ public function readAndWrite(bool $blocking, bool $close = false): array if ($w) { @stream_select($r, $w, $e, 0, Process::TIMEOUT_PRECISION * 1E6); } elseif ($this->fileHandles) { - usleep(Process::TIMEOUT_PRECISION * 1E6); + usleep((int) (Process::TIMEOUT_PRECISION * 1E6)); } } foreach ($this->fileHandles as $type => $fileHandle) {