mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Exceptions updates:
- Enforce exceptions to be derived from class Exception. This allows users to perform catch-all. It's not yet complete, so don't get comfortable with it just yet :) Updates are coming soon. - Implement zend_throw_exception() using zend_throw_exception_ex()
This commit is contained in:
parent
559b14611d
commit
d9630a595b
6 changed files with 46 additions and 63 deletions
|
@ -31,6 +31,7 @@ ZEND_API void zend_register_default_classes(TSRMLS_D);
|
|||
* message NULL or the message of the exception */
|
||||
ZEND_API void zend_throw_exception(zend_class_entry *exception_ce, char *message, long code TSRMLS_DC);
|
||||
ZEND_API void zend_throw_exception_ex(zend_class_entry *exception_ce, long code TSRMLS_DC, char *format, ...);
|
||||
ZEND_API void zend_throw_exception_object(zval *exception TSRMLS_DC);
|
||||
|
||||
/* show an exception using zend_error(E_ERROR,...) */
|
||||
ZEND_API void zend_exception_error(zval *exception TSRMLS_DC);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue