Browse Source

Added missing zend_parse_parameters_none() to restore_error_handler() and restore_exception_handler() (Ferenc)

pull/1206/merge
Kalle Sommer Nielsen 12 years ago
parent
commit
607b7d662a
  1. 8
      Zend/zend_builtin_functions.c

8
Zend/zend_builtin_functions.c

@ -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));
}

Loading…
Cancel
Save