aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/db
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2006-02-15 15:50:14 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2006-02-15 15:50:14 +0000
commit2ec9c9c82c2fdba1056bbab3d17041a06daf99aa (patch)
tree47df0c62393340a02f85c8e1cf8e35375811ec6d /phpBB/includes/db
parentff9df321ee2254998ca2b9852c16e18fb309d10d (diff)
downloadforums-2ec9c9c82c2fdba1056bbab3d17041a06daf99aa.tar
forums-2ec9c9c82c2fdba1056bbab3d17041a06daf99aa.tar.gz
forums-2ec9c9c82c2fdba1056bbab3d17041a06daf99aa.tar.bz2
forums-2ec9c9c82c2fdba1056bbab3d17041a06daf99aa.tar.xz
forums-2ec9c9c82c2fdba1056bbab3d17041a06daf99aa.zip
display complete backtrace. ;)
git-svn-id: file:///svn/phpbb/trunk@5556 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/db')
-rw-r--r--phpBB/includes/db/dbal.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/phpBB/includes/db/dbal.php b/phpBB/includes/db/dbal.php
index bce4398cb3..6a573f42b4 100644
--- a/phpBB/includes/db/dbal.php
+++ b/phpBB/includes/db/dbal.php
@@ -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);
}