From 6cdbfcf226f0235a00206edfd119fcc90465a2b8 Mon Sep 17 00:00:00 2001 From: Jan Hicken Date: Sun, 31 Jan 2021 11:47:41 +0100 Subject: [PATCH] Add default value for errcontext variable in error handler function This variable is no longer passed in PHP 8.0. It cannot be removed however, because it would not be backwards compatible. --- htdocs/setup.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/setup.php b/htdocs/setup.php index 8b13d0ad..2a82dbf3 100644 --- a/htdocs/setup.php +++ b/htdocs/setup.php @@ -13,7 +13,7 @@ function log_setup_error($errno , $errstr , $errfile , $errline) { error_log('DAViCal setup.php: Informational: '.$errfile.'('.$errline.'): ['.$errno.'] '.$errstr); } -function catch_setup_errors($errno , $errstr , $errfile , $errline , $errcontext ) { +function catch_setup_errors($errno , $errstr , $errfile , $errline , $errcontext = null ) { if ( $errno == 2 ) { // A working installation will regularly fail to include_once() for several files as it searches for the location log_setup_error($errno , $errstr , $errfile , $errline);