|
From: Henry S. <kel...@ph...> - 2009-08-04 15:57:54
|
Author: Kellanved
Date: Tue Aug 4 16:57:38 2009
New Revision: 9923
Log:
and for pseudocron too (to conisder: log db errors to debug faulty cron jobs)
Modified:
branches/phpBB-3_0_0/phpBB/includes/functions.php
Modified: branches/phpBB-3_0_0/phpBB/includes/functions.php
==============================================================================
*** branches/phpBB-3_0_0/phpBB/includes/functions.php (original)
--- branches/phpBB-3_0_0/phpBB/includes/functions.php Tue Aug 4 16:57:38 2009
***************
*** 3468,3474 ****
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);
}
--- 3468,3474 ----
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') || defined('IN_CRON'))
{
add_log('critical', 'LOG_IMAGE_GENERATION_ERROR', $errfile, $errline, $msg_text);
}
***************
*** 3614,3620 ****
exit_handler();
break;
! // PHP4 comptibility
case E_DEPRECATED:
return true;
break;
--- 3614,3620 ----
exit_handler();
break;
! // PHP4 compatibility
case E_DEPRECATED:
return true;
break;
|