mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-06 16:56:44 +02:00
add the option to place image debugging information to the log
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9920 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -3465,8 +3465,13 @@ function msg_handler($errno, $msg_text, $errfile, $errline)
|
||||
// remove complete path to installation, with the risk of changing backslashes meant to be there
|
||||
$errfile = str_replace(array(phpbb_realpath($phpbb_root_path), '\\'), array('', '/'), $errfile);
|
||||
$msg_text = str_replace(array(phpbb_realpath($phpbb_root_path), '\\'), array('', '/'), $msg_text);
|
||||
|
||||
echo '<b>[phpBB Debug] PHP Notice</b>: in file <b>' . $errfile . '</b> on line <b>' . $errline . '</b>: <b>' . $msg_text . '</b><br />' . "\n";
|
||||
|
||||
// we are writing an image - the user won't see the debug, so let's place it in the log
|
||||
if (defined('IMAGE_OUTPUT'))
|
||||
{
|
||||
add_log('critical', 'LOG_IMAGE_GENERATION_ERROR', $errfile, $errline, $msg_text);
|
||||
}
|
||||
// echo '<br /><br />BACKTRACE<br />' . get_backtrace() . '<br />' . "\n";
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user