diff --git a/library/think/process/pipes/Windows.php b/library/think/process/pipes/Windows.php index 1b8b0d4f..64aebd48 100644 --- a/library/think/process/pipes/Windows.php +++ b/library/think/process/pipes/Windows.php @@ -49,7 +49,7 @@ class Windows extends Pipes if (is_resource($input)) { $this->input = $input; } else { - $this->inputBuffer = $input; + $this->inputBuffer = (string) $input; } }