Developer Drive: PHP Error Checking
The Developer Drive site has a new post with a few beginner suggestions about how to do some error reporting in your applications: As much as programmers attempt to anticipate every possible action or...
View ArticleVance Lucas: Handling Exceptions in Gearman Tasks (Even Background Ones)
Vance Lucas has a quick new post to his site showing you how to handle exceptions in Gearman tasks so that they can be logged correctly as a failure. I recently had some issues with Gearman tasks...
View ArticleSherif Ramadan: Finally Getting finally In PHP?
In this recent post to his site Sherif Ramadan looks at a proposal that's currently under view (RFC) to add the "finally" keyword to PHP. It's quite possible that PHP may finally be getting the...
View ArticleMiro Svrtan: PHP Fatal errors into exceptions natively
Miro Svrtan has a new post today proposing something that could be added to help handle bad method calls in PHP apps - using the BadMethodCallException (pre-existing) instead of throwing fatal errors....
View ArticlePHPMaster.com: Testing Error Conditions with PHPUnit
Over on PHPMaster.com there's a new post for the unit testers in the audience (you all unit test, right?) from Matt Turland about testing error conditions in your applications. Let's say you're...
View ArticleTimothy Boronczyk: PHP Assertions
Timothy Boronczyk has written up a new post that looks at using assertions in PHP - the actual use of the assert function to evaluate values in your code. I stumbled upon assertions in PHP today,...
View ArticlePHPMaster.com: Exceptional Exceptions
On PHPMaster.com today they have a new post from Remi Woler about "exceptional exceptions" - using exceptions to handle the flow of your application's execution a bit better. Unlike errors, exceptions...
View ArticleMatt Frost: Mocking SoapClient
Matt Frost has shared some of his work he's done with the SoapClient in PHP and how he mocked it out for his unit tests (since it's an external resource). The concept of mocking web services for...
View ArticleJoshua Thijssen: PHP5.5: Try/Catch/Finally
Joshua Thjissen has a new post to his site today about a feature that's been introduced in the upcoming PHP 5.5 release of the language - the addition of "finally" to try/catch exception handling. He...
View ArticleLarry Garfield: On empty return values
Larry Garfield has posted some of his thoughts on return values and reminds you about consistent return types, regardless of the result. Earlier today, I posted a brief tweet (isn't that redundant?)...
View ArticleRob Allen: Simple logging of ZF2 exceptions
In this new post to his site Rob Allen shows you how to implement a simple logging method for catching exceptions in your Zend Framework 2 application. I recently had a problem with a ZF2 based...
View ArticleChris Hartjes: Testing Smells - Try/catch
In this new post to his site Chris Hartjes gives an example of what he calls a "testing smell". This particular illustration deals with the poor handling of testing and exceptions with try/catch...
View ArticleJetBrains.com: Just-In-Time debugging and PHP Exception Breakpoints with...
On the JetBrains site there's a recent post showing you how to use just-in-time debugging and breakpoints in their PHPStorm IDE combined with the popular PHP debugging tool Xdebug. In every project...
View ArticleThree Devs & A Maybe Podcast: Exception and Error Handling
In the latest episode of the Three Devs and a Maybe podcast Michael Budd, Fraser Hart, Lewis Cains and Edd Mann look at error and exception handling in PHP applications. In this weeks show we...
View ArticleRob Allen: Throw an exception when simplexml_load_string fails
In a quick post to his site Rob Allen shares a class that he's created to handle and throw an exception any time that the load from a SimpleXML parsing fails. I keep having to look up how to stop the...
View Article