From 88d135a4e5d23ed51a91e59991199b8ae19b386e Mon Sep 17 00:00:00 2001 From: crazywhalecc Date: Thu, 11 Dec 2025 15:50:39 +0800 Subject: [PATCH] Allow interrupt on Windows --- src/StaticPHP/Runtime/Shell/Shell.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/StaticPHP/Runtime/Shell/Shell.php b/src/StaticPHP/Runtime/Shell/Shell.php index 7300b8e1..2d0d90b8 100644 --- a/src/StaticPHP/Runtime/Shell/Shell.php +++ b/src/StaticPHP/Runtime/Shell/Shell.php @@ -171,7 +171,7 @@ abstract class Shell } else { $env = null; } - $process = proc_open($cmd, $descriptors, $pipes, $cwd, env_vars: $env); + $process = proc_open($cmd, $descriptors, $pipes, $cwd, env_vars: $env, options: PHP_OS_FAMILY === 'Windows' ? ['create_process_group' => true] : null); $output_value = ''; try {