mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-02-07 12:36:25 +00:00
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:
parent
a98afd7e5c
commit
e5de1e7f2b
1 changed files with 3 additions and 3 deletions
|
@ -101,12 +101,12 @@ class Debugger extends Object {
|
||||||
* @access public
|
* @access public
|
||||||
*/
|
*/
|
||||||
function handleError($code, $description, $file = null, $line = null, $context = null) {
|
function handleError($code, $description, $file = null, $line = null, $context = null) {
|
||||||
$_this = Debugger::getInstance();
|
if (error_reporting() == 0 || $code === 2048) {
|
||||||
if (error_reporting() == 0) {
|
|
||||||
// Error suppression (@) enabled
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$_this = Debugger::getInstance();
|
||||||
|
|
||||||
if (empty($file)) {
|
if (empty($file)) {
|
||||||
$file = '[internal]';
|
$file = '[internal]';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue