From c6769fa9fb25b52ea43bf58f91334b8ee1ed5918 Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Wed, 13 Nov 2013 16:48:50 +0100 Subject: return 500 server error for fatal (so ultraproxy may react) --- it.class | 2 ++ 1 file changed, 2 insertions(+) (limited to 'it.class') diff --git a/it.class b/it.class index 509ec3d..7398fa3 100644 --- a/it.class +++ b/it.class @@ -248,6 +248,8 @@ static function fatal($title='', $body='', $to='') $p = is_array($title) ? $title : array('title' => $title, 'body' => $body, 'to' => $to); $p['backtraceskip']++; it::error($p); + if ($_SERVER['REMOTE_ADDR']) + header("HTTP/1.0 500 Internal Server Error"); exit(1); } -- cgit v1.2.3