<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Fri, 24 May 2013 05:15:07 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[DZone.com: What you must know about PHP errors...]]></title>
      <guid>http://www.phpdeveloper.org/news/16001</guid>
      <link>http://www.phpdeveloper.org/news/16001</link>
      <description><![CDATA[<p>
<i>Giorgio Sironi</i> has a new post to the DZone.com Web Builder Zone today giving a high-level guide to some of the <a href="http://css.dzone.com/articles/what-you-must-know-about-php">PHP errors you could encounter</a> in your development time.
</p>
<blockquote>
While pure object-oriented languages produces mainly exceptions to signal an error, PHP started out as procedural and so it has a wide range of errors that can be raised along with exceptions.
</blockquote>
<p>He talks about a few of the most common error related issues:</p>
<ul>
<li>Exceptions
<li>Errors
<li>Error Types (E_NOTICE, E_PARSE, etc.)
<li>php.ini directives
<li>PHP functions for setting error handlers
</ul>]]></description>
      <pubDate>Fri, 04 Mar 2011 13:15:06 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Rob Allen's Blog: Handling exceptions in a Front Controller plugin]]></title>
      <guid>http://www.phpdeveloper.org/news/15602</guid>
      <link>http://www.phpdeveloper.org/news/15602</link>
      <description><![CDATA[<p>
<i>Rob Allen</i> has another Zend Framework-themed post to his blog today looking at <a href="http://akrabat.com/zend-framework/handling-exceptions-in-a-front-controller-plugin/">handling exceptions in front controllers</a> a bit more correctly than they're currently treated.
</p>
<blockquote>
If you have a Zend Framework Front Controller plugin which throws an exception, then the action is still executed and then the error action is then called, so that the displayed output shows two actions rendered, with two layouts also rendered. This is almost certainly not what you want or what you expected.
</blockquote>
<p>
He points out the more correct process it should follow - dispatch the request and catch the error there before the request continues. The error is then tossed to the error controller for correct handling. He includes the code to do just that, showing how to wrap the routing in a try/catch and push the exception over to the error controller with an "error_handler" plugin created with an exception type of "other".
</p>]]></description>
      <pubDate>Mon, 20 Dec 2010 11:52:48 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Stefan Priebsch's Blog: Turning errors into exceptions]]></title>
      <guid>http://www.phpdeveloper.org/news/10080</guid>
      <link>http://www.phpdeveloper.org/news/10080</link>
      <description><![CDATA[<p>
In a <a href="http://inside.e-novative.de/archives/115-Turning-errors-into-exceptions.html">recent blog entry</a> <i>Stefan Priebsch</i> shows how to take an error thrown by your script and turn it into an exception (to make things like catchable fatal errors).
</p>
<blockquote>
While I would personally prefer an exception to be thrown in the first place, it is pretty easy to convert errors to exceptions in PHP.
</blockquote>
<p>
His example is pretty simple - you set a custom error handler in your script that pulls in the error information and tosses an exception based on the error number the handler is given. Then you can use the try/catch method to see if your script has tossed an exception of the fatal error type. Nice simple solution to handle an interesting little problem.
</p>]]></description>
      <pubDate>Wed, 30 Apr 2008 12:53:35 -0500</pubDate>
    </item>
  </channel>
</rss>
