We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c9bd4af commit 5d895e0Copy full SHA for 5d895e0
1 file changed
src/Classes/ExceptionMonitorFactory.php
@@ -35,7 +35,9 @@ public static function getExceptionMonitor(): ExceptionMonitorObj
35
});
36
37
$publicMessageHandler = new CallbackHandler(function (Throwable $exception) {
38
- ob_end_clean();
+ if (ob_get_length() > 0 || ob_get_level() > 0) {
39
+ ob_end_clean();
40
+ }
41
header("HTTP/1.0 500 Internal Server Error");
42
echo self::createMessage();
43
die();
0 commit comments