mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-05-25 02:34:17 +00:00
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:
parent
f376be164e
commit
6cdbfcf226
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user