title: Not displaying PHP errors
body: <p>I've boiled down the problem and made it clean so that it hopefully will be easier for you to help me.</p>
  
  <p>I have a very simple code:</p>
  
  <pre><code>&lt;?php
  echo "Hello world";
  ?&gt;
  </code></pre>
  
  <p>This runs perfectly fine.</p>
  
  <p>If I run the following code (parse error) I do not get any errors but the text "Hello world" is still displayed:</p>
  
  <pre><code>&lt;?php
  echo "Hello world";
  piwejfoiwjefoijwef
  ?&gt;
  </code></pre>
  
  <p>If I place the parse error before the code it does however not display "Hello world":</p>
  
  <pre><code>&lt;?php
  piwejfoiwjefoijwef
  echo "Hello world";
  ?&gt;
  </code></pre>
  
  <p>When I print phpinfo (in the same file, same directory) I have the following settings:
  display_errors  On
  display_startup_errors  On
  error_reporting 1</p>
  
  <p>If I try to also set the error reporting inside the script and run it with the following code I still do not get any errors or warning but the text "Hello world" is displayed:</p>
  
  <pre><code>&lt;?php
  error_reporting(E_ERROR | E_WARNING | E_PARSE); ini_set('display_errors', '1');
  echo "Hello world";
  owieufpowiejf
  ?&gt;
  </code></pre>
  
  <p>My php.ini file has the following values (and I have restarted Apache):</p>
  
  <pre><code>error_reporting = E_ERROR &amp; ~E_DEPRECATED
  display_errors = On
  display_startup_errors = On
  </code></pre>
  
  <p>I am running Apache / PHP / MySQL on the Amazon AMI with on a 64-bit AWS EC2. I am not that knowledgeable with server configurations. The errors started when I transitioned to the Amazon server. Besides error reporting the server and Apache/PHP runs flawlessly.</p>
  
  <p>Please guide me in what I can do to fix the problem.</p>
  
  <p>Thanks!</p>