1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-04-08 18:05:17 +02:00

[ticket/16354] Remove backtrace as it does not show meaningful info

PHPBB3-16354
This commit is contained in:
Marc Alexander 2020-02-03 20:21:16 +01:00
parent 115d0e794e
commit 5c1782a605
No known key found for this signature in database
GPG Key ID: 50E0D2423696F995

View File

@ -85,13 +85,7 @@ function installer_msg_handler($errno, $msg_text, $errfile, $errline)
return;
break;
case E_USER_ERROR:
$msg = '<b>General Error:</b><br />' . $msg_text . '<br /> in file ' . $errfile . ' on line ' . $errline;
$backtrace = get_backtrace();
if ($backtrace)
{
$msg .= '<br /><br />BACKTRACE<br />' . $backtrace;
}
$msg = '<b>General Error:</b><br>' . $msg_text . '<br> in file ' . $errfile . ' on line ' . $errline . '<br><br>';
throw new \phpbb\exception\runtime_exception($msg);
break;