diff options
author | Marcus Boerger <helly@php.net> | 2003-08-28 22:56:41 +0000 |
---|---|---|
committer | Marcus Boerger <helly@php.net> | 2003-08-28 22:56:41 +0000 |
commit | fa70708d1592783a88ea7ec1add1b6ec6d231f8a (patch) | |
tree | 8e3e4d2a6491102f5b0482cf97b1e1813f67b636 /Zend/zend_exceptions.h | |
parent | 12376a22702ddc45aad463a1684cf84eecde77af (diff) | |
download | php-git-fa70708d1592783a88ea7ec1add1b6ec6d231f8a.tar.gz |
Add zend_throw_exception_ex() which allows to format exception messages.
#
# Since we don't have any portable way of printing into a dynamic buffer i
# used a stack buffer of 1K (just like the error printing) and used a dynamic
# buffer in case the necessary function is available.
#
Diffstat (limited to 'Zend/zend_exceptions.h')
-rw-r--r-- | Zend/zend_exceptions.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Zend/zend_exceptions.h b/Zend/zend_exceptions.h index 0e1d70f26a..9b6e17661c 100644 --- a/Zend/zend_exceptions.h +++ b/Zend/zend_exceptions.h @@ -30,6 +30,7 @@ ZEND_API void zend_register_default_classes(TSRMLS_D); /* exception_ce NULL or zend_exception_get_default() or a derived class * 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, ...); /* show an exception using zend_error(E_ERROR,...) */ ZEND_API void zend_exception_error(zval *exception TSRMLS_DC); |