Skip to content

Commit

Permalink
Crashfix: can't call gh_error_handler() when using PHP 8
Browse files Browse the repository at this point in the history
Ref: #265
  • Loading branch information
gboudreau committed Apr 4, 2021
1 parent c945add commit 7c33a32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/common.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ function gh_shutdown() {
}
}

function gh_error_handler($errno, $errstr, $errfile, $errline, $errcontext) {
function gh_error_handler($errno, $errstr, $errfile, $errline, $errcontext = NULL) {
if(!($errno & error_reporting())) {
// Ignored (@) warning
return TRUE;
Expand Down

0 comments on commit 7c33a32

Please sign in to comment.