File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -1698,6 +1698,10 @@ ZEND_FUNCTION(set_error_handler)
1698
1698
Restores the previously defined error handler function */
1699
1699
ZEND_FUNCTION (restore_error_handler )
1700
1700
{
1701
+ if (zend_parse_parameters_none () == FAILURE ) {
1702
+ return ;
1703
+ }
1704
+
1701
1705
if (Z_TYPE (EG (user_error_handler )) != IS_UNDEF ) {
1702
1706
zval zeh ;
1703
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
+ if (zend_parse_parameters_none () == FAILURE ) {
1768
+ return ;
1769
+ }
1770
+
1763
1771
if (Z_TYPE (EG (user_exception_handler )) != IS_UNDEF ) {
1764
1772
zval_ptr_dtor (& EG (user_exception_handler ));
1765
1773
}
You can’t perform that action at this time.
0 commit comments