2
0
mirror of https://github.com/boostorg/website.git synced 2026-01-21 05:22:21 +00:00
Commit Graph

12 Commits

Author SHA1 Message Date
Daniel James
3ea5b26f2e Don't send error headers if headers have already been sent 2017-09-14 16:34:06 +01:00
Daniel James
379bcdc16f Fix protocol in error_handler 2017-06-09 21:16:51 +01:00
Daniel James
f5540f032c Fix the error_handler test cases
The problem is that when nette tester runs the tests using a CGI
executable it expects HTTP error statuses, but because it's not a real
HTTP request, SERVER_PROTOCOL isn't set. I tried to fix this before
using `http_repsonse_code` which does the right thing, but it's not
always available, so I had to revert that. So instead I've changed it so
that it assumes that it's an HTTP request unless it knows for sure that
it's a command line run.
2017-02-19 13:20:40 +00:00
Daniel James
5034261b57 Revert http_repsonse_code Changes
It isn't available on the server.
2017-02-17 21:46:53 +00:00
Daniel James
9489e3b0b7 Use exit(255) to match php 2017-02-09 13:28:46 +00:00
Daniel James
5dfc5183e0 Fix a couple of error handling issues
- Use `http_response_code` as it's a bit more robust than using `header`.
- Check errors against `error_reporting()`, so that error checks can be
  ignored when appropriate.
2017-02-09 13:28:45 +00:00
Daniel James
addd2d0edf Merge branch 'master' into develop 2016-12-11 04:59:16 +00:00
Daniel James
220bdf5a59 Remove print_r debug_backtrace from exception handler 2016-12-08 09:22:45 +00:00
Daniel James
451e564c26 Use exceptions for http errors
Not how I'd normally do this, but seems cleaner than exiting the script
in the middle of a constructor.
2016-11-30 01:30:37 +00:00
Daniel James
5ba78e30b6 Only rewrite links in the history section 2016-11-11 09:55:55 +00:00
Daniel James
6876756499 Bootstrap is also appropriate for command line tools. 2016-10-16 11:29:39 +01:00
Daniel James
f4472fc751 Website bootstrap file.
Sets up error handling and timezone, maybe other things in the future.
2016-09-29 02:08:52 +01:00