diff options
author | Urban Müller | 2013-11-13 16:48:50 +0100 |
---|---|---|
committer | Urban Müller | 2013-11-13 16:48:50 +0100 |
commit | c6769fa9fb25b52ea43bf58f91334b8ee1ed5918 (patch) | |
tree | 70d1ec94f3069bfb9906d05c30c70484a6c3aea7 | |
parent | f462a52db751268f2591b9ecf27d0cc60a8e5fc3 (diff) | |
download | itools-c6769fa9fb25b52ea43bf58f91334b8ee1ed5918.tar.gz itools-c6769fa9fb25b52ea43bf58f91334b8ee1ed5918.tar.bz2 itools-c6769fa9fb25b52ea43bf58f91334b8ee1ed5918.zip |
return 500 server error for fatal (so ultraproxy may react)
-rw-r--r-- | it.class | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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); } |