Permalink
Browse files

Changing how CakeLog registers itself as the error handler, this fixe…

…s issues with e-accelerator on some platforms. Fixes #1597, fixes #1087
  • Loading branch information...
1 parent cf0e9c0 commit 9c860d2ce8f452f282e2b0ea36d73e751e33bda5 @markstory markstory committed Mar 19, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 cake/libs/cake_log.php
View
3 cake/libs/cake_log.php
@@ -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.