News Feed
Jobs Feed
Sections




News Archive
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

ThinkPHP Blog: Oracle with PHP and PDO

Gonzalo Ayuso's Blog: Using node.js to store PHP sessions

Nexen.net: Error Messages in PHP (a Search)

SitePoint PHP Blog: The real difference between PHP and Python

Ole Markus' Blog: Catching fatal errors in PHP


Community Events









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


community introduction composer zendframework2 phpunit api database unittest testing code framework object functional release interview language event example opinion development

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