diff options
author | Aaron Piotrowski <aaron@trowski.com> | 2015-05-16 15:30:59 -0500 |
---|---|---|
committer | Aaron Piotrowski <aaron@trowski.com> | 2015-05-16 15:30:59 -0500 |
commit | d042d0880796cfe99262bb6fa44225e984c63ace (patch) | |
tree | eb428c9c3d43c4ab9c230b86eeaceccd01e42120 /Zend/zend_interfaces.h | |
parent | c9f27ee4227268bc74fc54e0e06102317e614804 (diff) | |
download | php-git-d042d0880796cfe99262bb6fa44225e984c63ace.tar.gz |
Remodel exceptions based on Throwable interface
Added Throwable interface that exceptions must
implement in order to be thrown. BaseException
was removed, EngineException renamed to
Error, and TypeException and ParseException
renamed to TypeError and ParseError. Exception
and Error no longer extend a common base
class, rather they both implement the Throwable
interface.
Diffstat (limited to 'Zend/zend_interfaces.h')
-rw-r--r-- | Zend/zend_interfaces.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Zend/zend_interfaces.h b/Zend/zend_interfaces.h index 8a8e0ce988..daf0aae5dc 100644 --- a/Zend/zend_interfaces.h +++ b/Zend/zend_interfaces.h @@ -31,6 +31,7 @@ extern ZEND_API zend_class_entry *zend_ce_aggregate; extern ZEND_API zend_class_entry *zend_ce_iterator; extern ZEND_API zend_class_entry *zend_ce_arrayaccess; extern ZEND_API zend_class_entry *zend_ce_serializable; +extern ZEND_API zend_class_entry *zend_ce_throwable; typedef struct _zend_user_iterator { zend_object_iterator it; |