Prevent PHP from printing error stack
<p>If there is a fatal error - like unable to connect to database, then PHP is printing the error stack in the browser like follows -</p>

<pre><code>mysql_pconnect() [&lt;a href='function.mysql-pconnect'&gt;function.mysql-pconnect&lt;/a&gt;]: Lost connection to MySQL server at 'reading initial communication packet', system error: 111

#0 /var/www/platform/db/connection.php:12 mysql_pconnect('127.0.0.1','root','password')
#1 /var/www/platform/db/front_page.php:10 open_db_connection()
#2 /var/www/platform/services/front_page_services.php:7 find_top_courses()
#3 /var/www/platform/inc/main.php:75 get_top_courses()
#4 /var/www/index.php:198 F3::run()
</code></pre>

<p>How do I prevent this? <code>error_reporting</code> in <code>php.ini</code> has been set to <code>0</code> and <code>display_errors</code> to be Off.</p>
