From fa70708d1592783a88ea7ec1add1b6ec6d231f8a Mon Sep 17 00:00:00 2001 From: Marcus Boerger Date: Thu, 28 Aug 2003 22:56:41 +0000 Subject: 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. # --- Zend/zend_exceptions.h | 1 + 1 file changed, 1 insertion(+) (limited to 'Zend/zend_exceptions.h') 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); -- cgit v1.2.1