From d4d9958b57ee57600e89d1a4f40c537c3cc474e6 Mon Sep 17 00:00:00 2001 From: Markus Staab Date: Tue, 26 Mar 2024 16:32:49 +0100 Subject: [PATCH] don't use temporary file on windows --- src/Util/PHP/AbstractPhpProcess.php | 1 + src/Util/PHP/WindowsPhpProcess.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Util/PHP/AbstractPhpProcess.php b/src/Util/PHP/AbstractPhpProcess.php index b080142fe6b..835d9148cd2 100644 --- a/src/Util/PHP/AbstractPhpProcess.php +++ b/src/Util/PHP/AbstractPhpProcess.php @@ -193,6 +193,7 @@ public function getCommand(array $settings, ?string $file = null): array } if ($file) { + $command[] = '-f'; $command[] = $file; } diff --git a/src/Util/PHP/WindowsPhpProcess.php b/src/Util/PHP/WindowsPhpProcess.php index 74524996d36..35ac11aa8b8 100644 --- a/src/Util/PHP/WindowsPhpProcess.php +++ b/src/Util/PHP/WindowsPhpProcess.php @@ -38,6 +38,6 @@ protected function getHandles(): array protected function useTemporaryFile(): bool { - return true; + return false; } }