This is an old revision of the document!
PHP RFC: Introduce Throwable interface and Error class
PHP 7 replaces existing fatal or recoverable fatal errors with exceptions. While the respective RFC was already in voting, I proposed a change to the exception hierarchy it used (see below).
This RFC proposes the following changes to PHP 7's exception hierarchy:
* Introduce a
interface * Let
interface * Introduce an
class that implements the
interface * Use
class as base class for exceptions raised by the engine
Backward Incompatible Changes
are no longer available as names in the global namespace.
Proposed PHP Version(s)