title: What happens with set_error_handler() on PHP7 now that all errors are exceptions?
body: <p>On PHP5 it makes a whole lot of sense having both <code>set_exception_handler()</code> and <code>set_error_handler()</code> defined.</p>
  
  <p>However, on PHP7 all (most?) errors are now exceptions. So, what's the point on defining both handlers, if even errors would pass by the exception handler instead?  </p>
  
  <p>I see there's a note on PHP7 new <code>Error</code> class in the exception handler doc, but there's no reference to the fact there's no plain errors anymore, but <code>Throwable</code>s, in the error handler function.</p>
  
  <blockquote>
    <p>Since PHP 7, most errors are reported by throwing <code>Error</code> exceptions, which will be caught by the handler as well. Both <code>Error</code> and <code>Exception</code> implements the <code>Throwable</code> interface. <a href="http://br2.php.net/manual/en/function.set-exception-handler.php#refsect1-function.set-exception-handler-parameters" rel="noreferrer"><em>[source]</em></a></p>
  </blockquote>