Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit 9c860d2ce8f452f282e2b0ea36d73e751e33bda5 1 parent cf0e9c0
@markstory markstory authored
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'));
}
Please sign in to comment.
Something went wrong with that request. Please try again.