title: What to do when error_get_last() is null?
body: <p>I'm having difficulty debugging my PHP Application.</p>
  
  <p>When I include my php file, no exception is thrown. I tried using set_error_handler, which does fire, but error_get_last() returns null.</p>
  
  <pre><code>set_error_handler(function() {
     echo 'Here is your error!';
     var_dump(error_get_last());
     echo 'Sike!';
  });
  try {
      include('viewer.php');
  } catch (Exception $e) {
      echo 'I really ought to tell you something went wrong here. But I won\'t';
  }
  restore_error_handler();
  exit();
  </code></pre>
  
  <p>Output:</p>
  
  <pre><code>Here is your error!NULL Sike!
  </code></pre>
  
  <p>Is there some third way I can find out what actually went wrong?</p>