From 3fc4a32743c9981cbe7bbc596b8f7454f9b3417c Mon Sep 17 00:00:00 2001 From: Marcus Boerger Date: Wed, 7 May 2003 01:02:23 +0000 Subject: Infrastructure to catch warnings and throw tehm as errors autmatically --- main/php.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'main/php.h') diff --git a/main/php.h b/main/php.h index ddf99a814f..d68ef47e4f 100644 --- a/main/php.h +++ b/main/php.h @@ -273,6 +273,14 @@ int cfgparse(void); #define php_error zend_error +typedef enum { + EH_NORMAL = 0, + EH_SUPPRESS, + EH_THROW +} error_handling_t; + +PHPAPI void php_set_error_handling(error_handling_t error_handling, zend_class_entry *exception_class TSRMLS_DC); + PHPAPI void php_verror(const char *docref, const char *params, int type, const char *format, va_list args TSRMLS_DC) ; /* PHPAPI void php_error(int type, const char *format, ...); */ -- cgit v1.2.1