diff options
Diffstat (limited to 'Zend/zend_exceptions.c')
-rw-r--r-- | Zend/zend_exceptions.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Zend/zend_exceptions.c b/Zend/zend_exceptions.c index 9292c6edac..c061584062 100644 --- a/Zend/zend_exceptions.c +++ b/Zend/zend_exceptions.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, ...) |