mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 20:38:52 +00:00
and for pseudocron too (to conisder: log db errors to debug faulty cron jobs)
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9923 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
769bc7174f
commit
b6690e51f9
1 changed files with 2 additions and 2 deletions
|
@ -3468,7 +3468,7 @@ function msg_handler($errno, $msg_text, $errfile, $errline)
|
||||||
echo '<b>[phpBB Debug] PHP Notice</b>: in file <b>' . $errfile . '</b> on line <b>' . $errline . '</b>: <b>' . $msg_text . '</b><br />' . "\n";
|
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
|
// we are writing an image - the user won't see the debug, so let's place it in the log
|
||||||
if (defined('IMAGE_OUTPUT'))
|
if (defined('IMAGE_OUTPUT') || defined('IN_CRON'))
|
||||||
{
|
{
|
||||||
add_log('critical', 'LOG_IMAGE_GENERATION_ERROR', $errfile, $errline, $msg_text);
|
add_log('critical', 'LOG_IMAGE_GENERATION_ERROR', $errfile, $errline, $msg_text);
|
||||||
}
|
}
|
||||||
|
@ -3614,7 +3614,7 @@ function msg_handler($errno, $msg_text, $errfile, $errline)
|
||||||
exit_handler();
|
exit_handler();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
// PHP4 comptibility
|
// PHP4 compatibility
|
||||||
case E_DEPRECATED:
|
case E_DEPRECATED:
|
||||||
return true;
|
return true;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Add table
Reference in a new issue