legacy
authorMichael Wallner <mike@php.net>
Fri, 2 Oct 2015 08:16:18 +0000 (10:16 +0200)
committerMichael Wallner <mike@php.net>
Fri, 2 Oct 2015 08:16:18 +0000 (10:16 +0200)
mdref/ExceptionHandler.php

index aeff40bd78275707a895de14d4bde164fc78ce7e..608afaadf42d3299de6a131c1be68f6cf43fbbce 100644 (file)
@@ -62,9 +62,9 @@ class ExceptionHandler
        public static function htmlException(\Exception $e, array $title_tag = ["h1"], array $message_tag = ["p"], array $trace_tag = ["pre", "style='font-size:smaller;overflow-x:scroll'"]) {
                if ($e instanceof Exception) {
                        $code = $e->getCode() ?: 500;
-                       foreach ($e->getHeaders() as $key => $val) {
-                               HTTP::setResponseHeader($key, $val);
-                       }
+                       #foreach ($e->getHeaders() as $key => $val) {
+                       #       HTTP::setResponseHeader($key, $val);
+                       #}
                } else {
                        $code = 500;
                }