Review 12.4 Merged

88568[BUGFIX] Correctly disable output buffering before a command is run

Benjamin Franzke CR +2 V +2 Easy +2 −1 updated 03/12/25, 12:59

Commit message

TYPO3 Bootstrap currently always starts output buffering,
even on CLI. The latter is quite confusing
as it delays console output until the process is ended.

Symfony ConsoleOutput is not designed to work with this.

It can also lead to excessive memory consumption
for commands with heavy output that do not explicitly
end the output buffering before sending output.

Last but not least, the documented reason
for starting output buffering does not exist on CLI
(ensure AJAX output not corrupted with accidental output).

For the least impact, make sure the output buffering is
stopped before a command is run by using the correct PHP function
for that.

Review

  • Code review CR +2 Done
    • Benjamin Franzke +2
    • Daniel Hettler +1
  • Verified V +2 Done
    • Benjamin Franzke +2
    • Daniel Hettler +1
    • core-ci +1 CI

Issues 1

Files 2

Review log 34

  1. Benjamin Franzke uploaded patch set 1 03/11/25, 08:16

  2. core-ci voted on patch set 1 V +1 03/11/25, 08:26 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/75460

  3. Benjamin Franzke merged patch set 2 03/11/25, 08:28

  4. Daniel Hettler voted on patch set 2 CR +1 V +1 03/12/25, 12:59