DISQUS

DISQUS Hello! Code Spatter is using DISQUS, a powerful comment system, to manage its comments. Learn more.

Community Page

Jump to original thread »
Author

PHP Developers, Keep me Sane

Started by Greg Allard · 10 months ago

There has been one thing that has driven me crazy since the begining days of my php programming. I understand that using @ to suppress errors can be useful. But what I don’t understand is why php would ever want to suppress a fatal error. Normally if @function() causes a fatal er ... Continue reading »

3 comments

  • "But Greg, that's not what I learned from XtremePHPCodingIn24Hours.com"
  • Yeah, PHP is funny that way.

    I open use it to suppress errors from file manipulations (delete, etc). Whatever happened to the good old days of coding when stuff returned 0 on success? Exceptions have their purpose, but I think sometimes that PHP's gone exception crazy.
  • I've been using python a lot recently and I like they way they work with their errors. Instead of suppressing it, you are catching it and then you have a chance to do some logic in that case. I guess php implemented a way of doing it that way also, but no one uses it.

Add New Comment

Returning? Login