mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-02 06:51:08 +02:00
display complete backtrace. ;)
git-svn-id: file:///svn/phpbb/trunk@5556 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -232,6 +232,15 @@ class dbal
|
||||
$this->sql_transaction('rollback');
|
||||
}
|
||||
|
||||
if (strlen($message) > 1024)
|
||||
{
|
||||
// We need to define $msg_long_text here to circumvent text stripping.
|
||||
global $msg_long_text;
|
||||
$msg_long_text = $message;
|
||||
|
||||
trigger_error(false, E_USER_ERROR);
|
||||
}
|
||||
|
||||
trigger_error($message, E_USER_ERROR);
|
||||
}
|
||||
|
||||
|
@@ -1635,7 +1635,13 @@ function add_log()
|
||||
function msg_handler($errno, $msg_text, $errfile, $errline)
|
||||
{
|
||||
global $cache, $db, $auth, $template, $config, $user;
|
||||
global $phpEx, $phpbb_root_path, $starttime, $msg_title;
|
||||
global $phpEx, $phpbb_root_path, $starttime, $msg_title, $msg_long_text;
|
||||
|
||||
// Message handler is stripping text. In case we need it, we are possible to define long text...
|
||||
if (isset($msg_long_text) && $msg_long_text && !$msg_text)
|
||||
{
|
||||
$msg_text = $msg_long_text;
|
||||
}
|
||||
|
||||
switch ($errno)
|
||||
{
|
||||
|
Reference in New Issue
Block a user