summaryrefslogtreecommitdiff
path: root/main/php.h
diff options
context:
space:
mode:
Diffstat (limited to 'main/php.h')
-rw-r--r--main/php.h8
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, ...); */