We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ec9d9f commit 607b7d6Copy full SHA for 607b7d6
Zend/zend_builtin_functions.c
@@ -1698,6 +1698,10 @@ ZEND_FUNCTION(set_error_handler)
1698
Restores the previously defined error handler function */
1699
ZEND_FUNCTION(restore_error_handler)
1700
{
1701
+ if (zend_parse_parameters_none() == FAILURE) {
1702
+ return;
1703
+ }
1704
+
1705
if (Z_TYPE(EG(user_error_handler)) != IS_UNDEF) {
1706
zval zeh;
1707
@@ -1760,6 +1764,10 @@ ZEND_FUNCTION(set_exception_handler)
1760
1764
Restores the previously defined exception handler function */
1761
1765
ZEND_FUNCTION(restore_exception_handler)
1762
1766
1767
1768
1769
1770
1763
1771
if (Z_TYPE(EG(user_exception_handler)) != IS_UNDEF) {
1772
zval_ptr_dtor(&EG(user_exception_handler));
1773
}
0 commit comments