Adding fix for Debugger when running cake on a server that has E_STRICT enabled for php 5

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5515 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
phpnut 2007-08-13 15:59:16 +00:00
parent a98afd7e5c
commit e5de1e7f2b

View file

@ -101,12 +101,12 @@ class Debugger extends Object {
* @access public
*/
function handleError($code, $description, $file = null, $line = null, $context = null) {
$_this = Debugger::getInstance();
if (error_reporting() == 0) {
// Error suppression (@) enabled
if (error_reporting() == 0 || $code === 2048) {
return;
}
$_this = Debugger::getInstance();
if (empty($file)) {
$file = '[internal]';
}