Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.6k
Commitbb07d18
committed
bug#59949 [Process] Use a pipe for stderr in pty mode to avoid mixed output between stdout and stderr (joelwurtz)
This PR was merged into the 6.4 branch.Discussion----------[Process] Use a pipe for stderr in pty mode to avoid mixed output between stdout and stderr| Q | A| ------------- | ---| Branch? | 6.4| Bug fix? | yes| New feature? | no| Deprecations? | no| Issues |Fix#59927| License | MITThis PR split the stderr in a pipe to correctly split stdout / stderr when using `->setPty`When using `pty` for pipes, PHP will only open only one pty and share the "same" fd for all pipes (it use dup but the original fd is the same)Which means there is a possibility than stdout goes to stderr (or vice versa) when using `pty` for both stdout and stderr.I did not make a test as this behavior is erratic and happens under other conditions that are hard to find (see related issue to see reproducer, we have to do some iterations before it happens)Commits-------ba755a8 fix(process): use a pipe for stderr in pty mode to avoid mixed output between stdout and stderrFile tree
2 files changed
+15
-1
lines changed- src/Symfony/Component/Process
- Pipes
- Tests
2 files changed
+15
-1
lines changedLines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
74 | 74 |
| |
75 | 75 |
| |
76 | 76 |
| |
77 |
| - | |
| 77 | + | |
78 | 78 |
| |
79 | 79 |
| |
80 | 80 |
| |
|
Lines changed: 14 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
540 | 540 |
| |
541 | 541 |
| |
542 | 542 |
| |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
543 | 557 |
| |
544 | 558 |
| |
545 | 559 |
| |
|
0 commit comments
Comments
(0)