Compare commits

..

No commits in common. "master" and "v1.0.7" have entirely different histories.

1 changed files with 3 additions and 9 deletions

View File

@ -5,10 +5,8 @@ function _gamectl_error_handler($errno, $errstr, $errfile, $errline)
if($errno == E_STRICT)
return;
$PHP_8_SUPPRESSED = E_ERROR | E_CORE_ERROR | E_COMPILE_ERROR | E_USER_ERROR | E_RECOVERABLE_ERROR | E_PARSE;
$err_rep = error_reporting();
// check if error was suppressed by @
if($err_rep === 0 || $err_rep === $PHP_8_SUPPRESSED)
// @ sign temporary disabled error reporting
if(error_reporting() == 0)
return;
$err = "Error happened: $errno, $errstr, $errfile, $errline\n";
@ -22,12 +20,8 @@ function _gamectl_exception_handler($e)
//let's filter out too stack traces which are printed anyway
foreach($lines as $idx => $line)
{
if($idx === 0)
{
$line = 'Exception in ' . $e->getFile() . ':' . $e->getLine() . "\n" . $line;
}
if($idx > 0 && preg_match('~^#\d+\s+~', $line))
continue;
break;
$digest .= $line . "\n";
}
$digest = trim($digest);