News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Brian Moon's Blog:
The death of die()
April 17, 2009 @ 12:02:29

Brian Moon has called for the death of die():

Now, I have no actual authority to do so. My PHP CVS karma does not extend that far. And I doubt it will actually get removed despite it being nothing more than an alias for exit now. No, what I would like to call a death to is the usage of die such as [echoing out a message to the user instead of doing proper error handling].

He points out a few perfectly viable alternatives like the exception handlers, the trigger_error function and custom error handlers.

0 comments voice your opinion now!
die death errorreporting error exception handler


blog comments powered by Disqus

Similar Posts

Jani Hartikainen's Blog: Handling errors in Zend Framework

Zend Developer Zone: Zend Framework Hidden Gems: Introduction

Stefan Mischook's Blog: Turning on display_errors in WAMP - Video Tutorial

Chris Hartjes: Testing Smells - Try/catch

Edin Kadribasic's Blog: Back to VC6 for PHP Windows build


Community Events





Don't see your event here?
Let us know!


language code podcast install framework threedevsandamaybe community unittest release wordpress configure laravel introduction testing series developer refactor list interview opinion

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework