diff options
author | Zeev Suraski <zeev@php.net> | 2004-02-03 12:17:09 +0000 |
---|---|---|
committer | Zeev Suraski <zeev@php.net> | 2004-02-03 12:17:09 +0000 |
commit | 9e60cb553fdff09dcff192d96884d75a9998bb73 (patch) | |
tree | ec9f7577dc55f3fdfc348bec94a194e783fbff9f /Zend/zend_default_classes.c | |
parent | 330d9f6352f4a8af90e1b053399e4ab17b3b00b1 (diff) | |
download | php-git-9e60cb553fdff09dcff192d96884d75a9998bb73.tar.gz |
Rewrote exception support. Fixes a few limitations and bugs in the old
implementation, and allows exceptions to 'fire' much earlier than before.
Instructions on how to use the new mechanism will follow on internals@
shortly...
Note - this (most probably) breaks the current implementation of
set_exception_handler()
Diffstat (limited to 'Zend/zend_default_classes.c')
-rw-r--r-- | Zend/zend_default_classes.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Zend/zend_default_classes.c b/Zend/zend_default_classes.c index 9292c6edac..c061584062 100644 --- a/Zend/zend_default_classes.c +++ b/Zend/zend_default_classes.c @@ -435,7 +435,7 @@ ZEND_API void zend_throw_exception_ex(zend_class_entry *exception_ce, long code efree(message); - EG(exception) = ex; + zend_throw_exception_internal(ex TSRMLS_CC); } /* at the moment we can't use zend_throw_exception_ex because we don't have a protable @@ -465,7 +465,7 @@ ZEND_API void zend_throw_exception(zend_class_entry *exception_ce, char *message zend_update_property_long(default_exception_ptr, ex, "code", sizeof("code")-1, code TSRMLS_CC); } - EG(exception) = ex; + zend_throw_exception_internal(ex TSRMLS_CC); } static void zend_error_va(int type, const char *file, uint lineno, const char *format, ...) |