Projekt

Allgemein

Profil

Aktionen

GX-Abgewiesen #67064

geschlossen

The shutdown handler from gm throws an error if the ob_status is empty and gets flushed

Von Christian Schmidt vor fast 4 Jahren hinzugefügt. Vor mehr als 2 Jahren aktualisiert.

Status:
Abgewiesen
Priorität:
Normal
Zugewiesen an:
Moritz Bunjes
Kategorie:
Core
Zielversion:
-
Beginn:
Abgabedatum:
% erledigt:

0%

Geschätzter Aufwand:
Steps to reproduce:
Release Notes Langtext:

Beschreibung

In the class : https://sources.gambio-server.net/gambio/gxdev/-/blob/4.1_develop/src/gm/classes/ErrorHandler.php

Is a missing check before @ob_end_flush().

Please fix the flushOutputBuffer like the example below :

/**
* Flushes the output buffer, if there is an active buffer.
*/
private function flushOutputBuffer(): void
{
if (ob_get_contents() !== '' && count(ob_get_status()) > 0) {
if (headers_sent() === false) {
@ini_set('zlib.output_compression', 'Off');
}
@ob_end_flush();
}
}


Aktionen

Auch abrufbar als: Atom PDF