Skip to content

Commit

Permalink
Changing how CakeLog registers itself as the error handler, this fixe…
Browse files Browse the repository at this point in the history
…s issues with e-accelerator on some platforms. Fixes #1597, fixes #1087
  • Loading branch information
markstory committed Mar 19, 2011
1 parent cf0e9c0 commit 9c860d2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cake/libs/cake_log.php
Expand Up @@ -287,5 +287,6 @@ function handleError($code, $description, $file = null, $line = null, $context =
}

if (!defined('DISABLE_DEFAULT_ERROR_HANDLING')) {
set_error_handler(array('CakeLog', 'handleError'));
$cakeLog =& CakeLog::getInstance();
set_error_handler(array($cakeLog, 'handleError'));
}

0 comments on commit 9c860d2

Please sign in to comment.