Implemented FR #55428 (E_RECOVERABLE_ERROR when output buffering in output buffering handler)

## Can probably go in lower branches, but I'd like to keep it in
## master for now