Changing how CakeLog registers itself as the error handler, this fixes issues with e-accelerator on some platforms. Fixes #1597, fixes #1087

This commit is contained in:
mark_story 2011-03-19 08:54:07 -04:00
parent cf0e9c0a31
commit 9c860d2ce8

View file

@ -287,5 +287,6 @@ class CakeLog {
}
if (!defined('DISABLE_DEFAULT_ERROR_HANDLING')) {
set_error_handler(array('CakeLog', 'handleError'));
$cakeLog =& CakeLog::getInstance();
set_error_handler(array($cakeLog, 'handleError'));
}