Skip to content

Commit 6330cd4

Browse files
TemaYudnicolas-grekas
authored andcommitted
[Mailer] STDOUT blocks infinitely under Windows when STDERR is filled
1 parent 60c5f5a commit 6330cd4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Transport/Smtp/Stream/ProcessStream.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public function initialize(): void
3535
$descriptorSpec = [
3636
0 => ['pipe', 'r'],
3737
1 => ['pipe', 'w'],
38-
2 => ['pipe', 'w'],
38+
2 => ['pipe', '\\' === \DIRECTORY_SEPARATOR ? 'a' : 'w'],
3939
];
4040
$pipes = [];
4141
$this->stream = proc_open($this->command, $descriptorSpec, $pipes);

0 commit comments

Comments
 (0)