title: PHP throws Exception for a warning
body: <p>Creating an object from default value is bad, yes, but it usually issues a warning. We try to adapt old and badly-written code, so we got to deal with it.</p>
  
  <p>What i don't get is why it suddenly (and randomly) throws an Exception and stop execution ? I search for a definition a new error handler, or any ini_set, but i can't find one.</p>
  
  <p>Php version is 5.5.31 on apache 2.4.25</p>
  
  <p>Message like this appears every now and then.</p>
  
  <pre><code>PHP Fatal error:  Uncaught exception 'ErrorException' 
      with message 'Creating default object from empty value'
  PHP Fatal error:  Uncaught exception 'ErrorException' 
      with message 'array_key_exists() expects parameter 2 to be array, string given
  </code></pre>