mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
- MFH error handling, now with save, replace, restore
This commit is contained in:
parent
6fb114f1d5
commit
3f7a4b7e90
7 changed files with 62 additions and 25 deletions
|
@ -287,7 +287,10 @@ END_EXTERN_C()
|
|||
#define error_handling_t zend_error_handling_t
|
||||
|
||||
BEGIN_EXTERN_C()
|
||||
PHPAPI void php_set_error_handling(error_handling_t error_handling, zend_class_entry *exception_class TSRMLS_DC);
|
||||
static inline ZEND_ATTRIBUTE_DEPRECATED void php_set_error_handling(error_handling_t error_handling, zend_class_entry *exception_class TSRMLS_DC)
|
||||
{
|
||||
zend_replace_error_handling(error_handling, exception_class, NULL TSRMLS_CC);
|
||||
}
|
||||
static inline ZEND_ATTRIBUTE_DEPRECATED void php_std_error_handling() {}
|
||||
|
||||
PHPAPI void php_verror(const char *docref, const char *params, int type, const char *format, va_list args TSRMLS_DC) PHP_ATTRIBUTE_FORMAT(printf, 4, 0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue