8000 bug #49604 [Mailer] STDOUT blocks infinitely under Windows when STDER… · symfony/symfony@626954d · GitHub
[go: up one dir, main page]

Skip to content

Commit 626954d

Browse files
bug #49604 [Mailer] STDOUT blocks infinitely under Windows when STDERR is filled (TemaYud)
This PR was submitted for the 6.2 branch but it was squashed and merged into the 5.4 branch instead. Discussion ---------- [Mailer] STDOUT blocks infinitely under Windows when STDERR is filled | Q | A | ------------- | --- | Branch? | 6.2 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | Fix #... <!-- prefix each issue number with "Fix #", no need to create an issue if none exists, explain below instead --> | License | MIT | Doc PR | symfony/symfony-docs#... <!-- required for new features --> stream_get_contents() on STDOUT blocks infinitely under Windows when STDERR is filled under some circumstances. Open STDERR in append mode ("a"), then this will work. Commits ------- 2641438 [Mailer] STDOUT blocks infinitely under Windows when STDERR is filled
2 parents 431b6ef + 2641438 commit 626954d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Mailer/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)
0