X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=app%2Fbootstrap%2Fweb.php;h=755bb79acfef14af7d2c119014f4fb8a4a88d260;hb=4c462ab66e6c65c15df7bd5fe6d2673884c639a0;hp=2ad975f1c383d006d0d0652f3cebc866100b067c;hpb=ebc0d017c8a24bd16ca1f4347b39b07ba4349135;p=pharext%2Fpharext.org diff --git a/app/bootstrap/web.php b/app/bootstrap/web.php index 2ad975f..755bb79 100644 --- a/app/bootstrap/web.php +++ b/app/bootstrap/web.php @@ -27,7 +27,9 @@ $injector->share(RouteCollector::class) $routes->addRoute("GET", "/session", function(array $args = null) use($injector) { $session = $injector->make(Session::class); $response = $injector->make(Response::class); - $response->setContentType("text/plain"); + if (!(extension_loaded("xdebug") && ini_get("xdebug.overload_var_dump") && ini_get("html_errors"))) { + $response->setContentType("text/plain"); + } ob_start($response); var_dump($_SESSION, $session); });