Commit 5e0bb71
committed
feature #10425 [Process] Add Process::disableOutput and Process::enableOutput methods (romainneutron)
This PR was merged into the 2.5-dev branch.
Discussion
----------
[Process] Add Process::disableOutput and Process::enableOutput methods
| Q | A
| ------------- | ---
| Bug fix? | no
| New feature? | yes
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | #9007
| License | MIT
| Doc PR | symfony/symfony-docs#3664
This is another implementation for #9007 that allows to disable the output/error-output storage in a Process in order to avoid using memory.
This is particularly useful when the process outputs large data and it's not read.
Commits
-------
a891e14 [Process] Add Process::disableOutput and Process::enableOutput methodsFile tree
Expand file treeCollapse file tree
5 files changed
+211
-3
lines changedOpen diff view settings
Filter options
- src/Symfony/Component/Process
- Tests
Expand file treeCollapse file tree
5 files changed
+211
-3
lines changedOpen diff view settings
Collapse file
src/Symfony/Component/Process/Process.php
Copy file name to clipboardExpand all lines: src/Symfony/Component/Process/Process.php+69-1Lines changed: 69 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
54 | 54 | |
55 | 55 | |
56 | 56 | |
| 57 | + |
57 | 58 | |
58 | 59 | |
59 | 60 | |
| ||
193 | 194 | |
194 | 195 | |
195 | 196 | |
| 197 | + |
196 | 198 | |
197 | 199 | |
198 | 200 | |
| ||
244 | 246 | |
245 | 247 | |
246 | 248 | |
| 249 | + |
247 | 250 | |
248 | 251 | |
249 | 252 | |
250 | 253 | |
251 | 254 | |
252 | 255 | |
| 256 | + |
| 257 | + |
| 258 | + |
253 | 259 | |
254 | 260 | |
255 | 261 | |
| ||
400 | 406 | |
401 | 407 | |
402 | 408 | |
| 409 | + |
| 410 | + |
| 411 | + |
| 412 | + |
| 413 | + |
| 414 | + |
| 415 | + |
| 416 | + |
| 417 | + |
| 418 | + |
| 419 | + |
| 420 | + |
| 421 | + |
| 422 | + |
| 423 | + |
| 424 | + |
| 425 | + |
| 426 | + |
| 427 | + |
| 428 | + |
| 429 | + |
| 430 | + |
| 431 | + |
| 432 | + |
| 433 | + |
| 434 | + |
| 435 | + |
| 436 | + |
| 437 | + |
| 438 | + |
| 439 | + |
| 440 | + |
| 441 | + |
| 442 | + |
| 443 | + |
| 444 | + |
| 445 | + |
| 446 | + |
| 447 | + |
| 448 | + |
| 449 | + |
| 450 | + |
| 451 | + |
| 452 | + |
| 453 | + |
| 454 | + |
403 | 455 | |
404 | 456 | |
405 | 457 | |
406 | 458 | |
407 | 459 | |
| 460 | + |
| 461 | + |
408 | 462 | |
409 | 463 | |
410 | 464 | |
411 | 465 | |
| 466 | + |
| 467 | + |
| 468 | + |
| 469 | + |
412 | 470 | |
413 | 471 | |
414 | 472 | |
| ||
420 | 478 | |
421 | 479 | |
422 | 480 | |
| 481 | + |
| 482 | + |
423 | 483 | |
424 | 484 | |
425 | 485 | |
| ||
450 | 510 | |
451 | 511 | |
452 | 512 | |
| 513 | + |
| 514 | + |
453 | 515 | |
454 | 516 | |
455 | 517 | |
456 | 518 | |
| 519 | + |
| 520 | + |
| 521 | + |
| 522 | + |
457 | 523 | |
458 | 524 | |
459 | 525 | |
| ||
466 | 532 | |
467 | 533 | |
468 | 534 | |
| 535 | + |
| 536 | + |
469 | 537 | |
470 | 538 | |
471 | 539 | |
| ||
1083 | 1151 | |
1084 | 1152 | |
1085 | 1153 | |
1086 | | - |
| 1154 | + |
1087 | 1155 | |
1088 | 1156 | |
1089 | 1157 | |
|
Collapse file
src/Symfony/Component/Process/ProcessBuilder.php
Copy file name to clipboardExpand all lines: src/Symfony/Component/Process/ProcessBuilder.php+32-1Lines changed: 32 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
29 | 29 | |
30 | 30 | |
31 | 31 | |
| 32 | + |
32 | 33 | |
33 | 34 | |
34 | 35 | |
| ||
154 | 155 | |
155 | 156 | |
156 | 157 | |
| 158 | + |
| 159 | + |
| 160 | + |
| 161 | + |
| 162 | + |
| 163 | + |
| 164 | + |
| 165 | + |
| 166 | + |
| 167 | + |
| 168 | + |
| 169 | + |
| 170 | + |
| 171 | + |
| 172 | + |
| 173 | + |
| 174 | + |
| 175 | + |
| 176 | + |
| 177 | + |
| 178 | + |
| 179 | + |
| 180 | + |
| 181 | + |
157 | 182 | |
158 | 183 | |
159 | 184 | |
| ||
172 | 197 | |
173 | 198 | |
174 | 199 | |
175 | | - |
| 200 | + |
| 201 | + |
| 202 | + |
| 203 | + |
| 204 | + |
| 205 | + |
| 206 | + |
176 | 207 | |
177 | 208 | |
Collapse file
src/Symfony/Component/Process/ProcessPipes.php
Copy file name to clipboardExpand all lines: src/Symfony/Component/Process/ProcessPipes.php+13-1Lines changed: 13 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
101 | 101 | |
102 | 102 | |
103 | 103 | |
| 104 | + |
| 105 | + |
104 | 106 | |
105 | 107 | |
106 | | - |
| 108 | + |
107 | 109 | |
| 110 | + |
| 111 | + |
| 112 | + |
| 113 | + |
| 114 | + |
| 115 | + |
| 116 | + |
| 117 | + |
| 118 | + |
| 119 | + |
108 | 120 | |
109 | 121 | |
110 | 122 | |
|
Collapse file
src/Symfony/Component/Process/Tests/AbstractProcessTest.php
Copy file name to clipboardExpand all lines: src/Symfony/Component/Process/Tests/AbstractProcessTest.php+78Lines changed: 78 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
700 | 700 | |
701 | 701 | |
702 | 702 | |
| 703 | + |
| 704 | + |
| 705 | + |
| 706 | + |
| 707 | + |
| 708 | + |
| 709 | + |
| 710 | + |
| 711 | + |
| 712 | + |
| 713 | + |
| 714 | + |
| 715 | + |
| 716 | + |
| 717 | + |
| 718 | + |
| 719 | + |
| 720 | + |
| 721 | + |
| 722 | + |
| 723 | + |
| 724 | + |
| 725 | + |
| 726 | + |
| 727 | + |
| 728 | + |
| 729 | + |
| 730 | + |
| 731 | + |
| 732 | + |
| 733 | + |
| 734 | + |
| 735 | + |
| 736 | + |
| 737 | + |
| 738 | + |
| 739 | + |
| 740 | + |
| 741 | + |
| 742 | + |
| 743 | + |
| 744 | + |
| 745 | + |
| 746 | + |
| 747 | + |
| 748 | + |
| 749 | + |
| 750 | + |
| 751 | + |
| 752 | + |
| 753 | + |
| 754 | + |
| 755 | + |
| 756 | + |
| 757 | + |
| 758 | + |
| 759 | + |
| 760 | + |
| 761 | + |
| 762 | + |
| 763 | + |
| 764 | + |
| 765 | + |
| 766 | + |
| 767 | + |
| 768 | + |
| 769 | + |
| 770 | + |
| 771 | + |
| 772 | + |
| 773 | + |
| 774 | + |
| 775 | + |
| 776 | + |
| 777 | + |
| 778 | + |
| 779 | + |
| 780 | + |
703 | 781 | |
704 | 782 | |
705 | 783 | |
|
Collapse file
src/Symfony/Component/Process/Tests/ProcessBuilderTest.php
Copy file name to clipboardExpand all lines: src/Symfony/Component/Process/Tests/ProcessBuilderTest.php+19Lines changed: 19 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
193 | 193 | |
194 | 194 | |
195 | 195 | |
| 196 | + |
| 197 | + |
| 198 | + |
| 199 | + |
| 200 | + |
| 201 | + |
| 202 | + |
| 203 | + |
| 204 | + |
| 205 | + |
| 206 | + |
| 207 | + |
| 208 | + |
| 209 | + |
| 210 | + |
| 211 | + |
| 212 | + |
| 213 | + |
| 214 | + |
196 | 215 | |
0 commit comments