title: How to enable notices on my development server - Not working
body: <p>I'm referring to <a href="https://stackoverflow.com/questions/670142/how-to-enable-notices-on-my-development-server">How to enable notices on my development server</a></p>
  
  <p>I expect the following code shall give me some warning, when I execute it through, as my <code>$a</code> is not explicitly declared as array</p>
  
  <p><code>php a.php</code></p>
  
  <pre><code>&lt;?php
  
  ini_set('display_errors', 1);
  error_reporting(E_NOTICE);
  
  $a['key'] = 123;
  echo $a['key'] . "\n";   
  </code></pre>
  
  <p>However, no warning message being printed. Is there anything I had missed?</p>
  
  <p>The PHP I'm using is PHP 5.5.3. I'm not sure this matters?</p>