diff options
author | Marcus Boerger <helly@php.net> | 2003-05-07 01:02:23 +0000 |
---|---|---|
committer | Marcus Boerger <helly@php.net> | 2003-05-07 01:02:23 +0000 |
commit | 3fc4a32743c9981cbe7bbc596b8f7454f9b3417c (patch) | |
tree | 95d3f1635ef6dc276dcbc948561260cd32d2d1cf /main/php.h | |
parent | 764eaa5b8b6a28ba603002872497464e3c351061 (diff) | |
download | php-git-3fc4a32743c9981cbe7bbc596b8f7454f9b3417c.tar.gz |
Infrastructure to catch warnings and throw tehm as errors autmatically
Diffstat (limited to 'main/php.h')
-rw-r--r-- | main/php.h | 8 |
1 files changed, 8 insertions, 0 deletions
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, ...); */ |