<?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>Tue, 21 May 2013 23:09:12 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Sameer Borate's Blog: Disabling the silence @-operator in PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/14747</guid>
      <link>http://www.phpdeveloper.org/news/14747</link>
      <description><![CDATA[<p>
As <i>Sameer Borate</i> points out in <a href="http://www.codediesel.com/php/disabling-the-silence-operator-in-php">his latest post</a> to his blog, there's a way to disable that pesky suppression operator (@) in your PHP installation thanks to the <a href="http://pecl.php.net/package/scream">scream extension</a>.
</p>
<blockquote>
PHP supports one error control operator: the at sign (@). When prepended to an expression any error generated by that expression will be ignored. It can also be useful for hiding errors generated by various functions. [...] Although quite useful at some times, using the @-operator can have some annoying side effects. 
</blockquote>
<p>
He shows you how to install the extension on a stock Ubuntu platform (including the PHP packages) and how use the feature in your application by means of a call to <a href="http://php.net/ini_set">ini_set</a> (or, of course, setting it in your php.ini file).
</p>]]></description>
      <pubDate>Tue, 06 Jul 2010 08:42:22 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Quinton Parker's Blog: Try-catch suppress?]]></title>
      <guid>http://www.phpdeveloper.org/news/12176</guid>
      <link>http://www.phpdeveloper.org/news/12176</link>
      <description><![CDATA[<p>
In <a href="http://phpslacker.com/2009/03/19/try-catch-suppress/">this new entry</a> to his blog <i>Quinton Parker</i> looks at some strangeness he's found around the try/catch functionality in PHP. His specific example involves <a href="http://php.net/file_get_contents">file_get_contents</a>.
</p>
<blockquote>
PHP never ceases to amaze me. Just the other day a colleague discovered that you can suppress error messages reported by <a href="http://www.php.net/file_get_contents">file_get_contents()</a> using the try-catch statement. That should've raised an eyebrow.
</blockquote>
<p>
His sample code shows the normal error that a file_get_contents on a nonexistent file would give then wraps it in a try/catch. The same path is put into the file_get_contents but, because of some sort of interesting handling, isn't reported in the catch. He's at a loss and is asking for help figuring this one out from the readers out there. Be sure to <a href="http://phpslacker.com/2009/03/19/try-catch-suppress/#comments">leave a comment</a> if you have more info.
</p>]]></description>
      <pubDate>Fri, 20 Mar 2009 07:56:13 -0500</pubDate>
    </item>
  </channel>
</rss>
