From e5de1e7f2b4ed653f15043759bc453f4e00b63e4 Mon Sep 17 00:00:00 2001 From: phpnut Date: Mon, 13 Aug 2007 15:59:16 +0000 Subject: [PATCH] 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 --- cake/libs/debugger.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cake/libs/debugger.php b/cake/libs/debugger.php index fab90cdec..794a2759b 100644 --- a/cake/libs/debugger.php +++ b/cake/libs/debugger.php @@ -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]'; }