Zeile 61 | Zeile 61 |
---|
E_USER_WARNING => 'User Warning', E_USER_NOTICE => 'User Notice', E_USER_DEPRECATED => 'User Deprecated Warning',
|
E_USER_WARNING => 'User Warning', E_USER_NOTICE => 'User Notice', E_USER_DEPRECATED => 'User Deprecated Warning',
|
E_STRICT => 'Runtime Notice',
| |
E_RECOVERABLE_ERROR => 'Catchable Fatal Error', MYBB_SQL => 'MyBB SQL Error', MYBB_TEMPLATE => 'MyBB Template Error',
| E_RECOVERABLE_ERROR => 'Catchable Fatal Error', MYBB_SQL => 'MyBB SQL Error', MYBB_TEMPLATE => 'MyBB Template Error',
|
Zeile 100 | Zeile 99 |
---|
E_DEPRECATED, E_NOTICE, E_USER_NOTICE,
|
E_DEPRECATED, E_NOTICE, E_USER_NOTICE,
|
E_STRICT
| |
);
/**
| );
/**
|
Zeile 130 | Zeile 128 |
---|
*/ function __construct() {
|
*/ function __construct() {
|
| if(version_compare(PHP_VERSION, '7.0', '<')) { $this->error_types[E_STRICT] = 'Runtime Notice'; $this->ignore_types[] = E_STRICT; }
|
// Lets set the error handler in here so we can just do $handler = new errorHandler() and be all set up. $error_types = E_ALL; foreach($this->ignore_types as $bit)
| // Lets set the error handler in here so we can just do $handler = new errorHandler() and be all set up. $error_types = E_ALL; foreach($this->ignore_types as $bit)
|
Zeile 178 | Zeile 182 |
---|
return true; }
|
return true; }
|
$file = str_replace(MYBB_ROOT, "", $file);
| if(isset($file)) { $file = str_replace(MYBB_ROOT, "", $file); } else { $file = ""; }
|
if($type == MYBB_SQL || strpos(strtolower($this->error_types[$type]), 'warning') === false) {
| if($type == MYBB_SQL || strpos(strtolower($this->error_types[$type]), 'warning') === false) {
|
Zeile 385 | Zeile 396 |
---|
$error_data .= $back_trace; $error_data .= "</error>\n\n";
|
$error_data .= $back_trace; $error_data .= "</error>\n\n";
|
if(isset($mybb->settings['errorloglocation']) && trim($mybb->settings['errorloglocation']) != "")
| if( isset($mybb->settings['errorloglocation']) && trim($mybb->settings['errorloglocation']) != "" && substr($mybb->settings['errorloglocation'], -4) !== '.php' )
|
{ @error_log($error_data, 3, $mybb->settings['errorloglocation']); }
| { @error_log($error_data, 3, $mybb->settings['errorloglocation']); }
|