Php: Displaying errors

By admin • Sep 21st, 2008 • Category: php, programming, rants

If you're new here, you may want to subscribe to my RSS feed. Thanks for visiting!

Today I got into a wonderful debate about php errors.

I myself prefer to have the system handle the suppression of errors at system init (turn error displaying to off), and only use error suppression (@function) when needed.

Why? @function is slower than function. Why add a performance decrease when its not needed?

Anyways wondering what others think about this? I’m not sayign build code with errors, but things like notices should not be issues to a live site. If your handling / processing / logging your errors, do you really think you need to also suppress errors?

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google
Tagged as: ,

admin is
Email this author | All posts by admin

Leave a Reply