title: PHP showing errors, although display_errors is set to 0
body: <p>I'm struggling for an hour, trying to figure out why is PHP showing errors although I suppressed them at the very begginging of my code like this:</p>
  
  <pre><code>error_reporting(E_ALL);
  ini_set('log_errors', 1);
  ini_set('display_errors', 0);
  ini_set('display_startup_errors', 0);
  </code></pre>
  
  <p>I want to log all PHP errors but I don't want to show any of them to the user as this is code for the production.</p>
  
  <p>At the end of the PHP file I check if the ini is set correctly with <code>ini_get('display_errors')</code> and it returns <code>0</code> as expected. 
  I also check my whole project and there is no other ini_set() function called, which could override this setting.</p>
  
  <p><strong>Why am I still getting Undefined variable shown to the user?</strong></p>
  
  <pre><code>&lt;div style="border:1px solid #990000;padding-left:20px;margin:0 0 10px 0;"&gt;
  
  &lt;h4&gt;A PHP Error was encountered&lt;/h4&gt;
  
  &lt;p&gt;Severity: Notice&lt;/p&gt;
  &lt;p&gt;Message:  Undefined variable: fb_admin&lt;/p&gt;
  &lt;p&gt;Filename: fb_app/header.php&lt;/p&gt;
  &lt;p&gt;Line Number: 173&lt;/p&gt;
  
  &lt;/div&gt;
  </code></pre>
  
  <p>This is getting frustrating so thanks for any help :)</p>
  
  <p><strong>Edit:</strong> Of course I'm aware that I should fix this error, but that's not the point. The point is how to correctly handle other similar, unpredictable errors. <strong>I want to log them but not to show them.</strong></p>