mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Infrastructure to catch warnings and throw tehm as errors autmatically
This commit is contained in:
parent
764eaa5b8b
commit
3fc4a32743
3 changed files with 97 additions and 17 deletions
|
@ -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, ...); */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue