Vergleich inc/class_error.php - 1.8.35 - 1.8.39

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 61Zeile 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 100Zeile 99
		E_DEPRECATED,
E_NOTICE,
E_USER_NOTICE,

		E_DEPRECATED,
E_NOTICE,
E_USER_NOTICE,

		E_STRICT

 
	);

/**

	);

/**

Zeile 130Zeile 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 178Zeile 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 385Zeile 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']);
}