From f8ed1aa86e12cda137eabf277b84678263421fa4 Mon Sep 17 00:00:00 2001 From: crazywhalecc Date: Sun, 12 Apr 2026 23:17:16 +0800 Subject: [PATCH] Fix unpassed env for windows cmd --- src/StaticPHP/Runtime/Shell/WindowsCmd.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/StaticPHP/Runtime/Shell/WindowsCmd.php b/src/StaticPHP/Runtime/Shell/WindowsCmd.php index ad07f93b..4c7af181 100644 --- a/src/StaticPHP/Runtime/Shell/WindowsCmd.php +++ b/src/StaticPHP/Runtime/Shell/WindowsCmd.php @@ -27,7 +27,7 @@ class WindowsCmd extends Shell $this->last_cmd = $cmd = $this->getExecString($cmd); // echo $cmd . PHP_EOL; - $this->passthru($cmd, $this->console_putput, $original_command, cwd: $this->cd); + $this->passthru($cmd, $this->console_putput, $original_command, cwd: $this->cd, env: $this->env); return $this; }