Skip to content

Conversation

@panrafal
Copy link

@panrafal panrafal commented Feb 3, 2013

If display_errors is false, error handling will work normally, but no broken output or error message will be displayed. The page will have 500 status code.

Additionaly, you can provide "error_page" option, with an user-friendly html or php file to print in case of an error.

This way you get across environments:

  • consistent error handling and logging
  • error messages on development
  • pretty error pages on production - whatever happens
  • 500 status, so it won't be taken up by search engines, or AJAX requests

php_error will still catch all errors, but will not print them if display_errors is disabled. 
the same applies to ajax debugging
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant