|
|
|
@ -1698,6 +1698,10 @@ ZEND_FUNCTION(set_error_handler) |
|
|
|
Restores the previously defined error handler function */ |
|
|
|
ZEND_FUNCTION(restore_error_handler) |
|
|
|
{ |
|
|
|
if (zend_parse_parameters_none() == FAILURE) { |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
if (Z_TYPE(EG(user_error_handler)) != IS_UNDEF) { |
|
|
|
zval zeh; |
|
|
|
|
|
|
|
@ -1760,6 +1764,10 @@ ZEND_FUNCTION(set_exception_handler) |
|
|
|
Restores the previously defined exception handler function */ |
|
|
|
ZEND_FUNCTION(restore_exception_handler) |
|
|
|
{ |
|
|
|
if (zend_parse_parameters_none() == FAILURE) { |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
if (Z_TYPE(EG(user_exception_handler)) != IS_UNDEF) { |
|
|
|
zval_ptr_dtor(&EG(user_exception_handler)); |
|
|
|
} |
|
|
|
|