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.
This commit is contained in:
Jan Hicken authored and Florian Schlichting committed 2021-02-03 14:57:57 +00:00
1 parent f376be164e
commit 6cdbfcf226
1 file changed
+1 -1
+1 -1
View File
@@ -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);