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
- Introduce an
Errorclass that implements the
Errorclass as base class for exceptions raised by the engine
Backward Incompatible Changes
Throwable are no longer available as names in the global namespace.
Proposed PHP Version(s)