Skip to content
Permalink
Browse files

Fix issue "Debugger class not found"

App::uses('Debugger') not needed because it's allready defined in top of file
  • Loading branch information...
SanderSander authored and markstory committed Sep 11, 2015
1 parent a4a63bf commit 5a7507df4fd08bac5af84be921ffb4ae4b6d8c92
Showing with 10 additions and 0 deletions.
  1. +10 −0 lib/Cake/Error/ErrorHandler.php
@@ -230,6 +230,16 @@ public static function handleError($code, $description, $file = null, $line = nu
}
$message = $error . ' (' . $code . '): ' . $description . ' in [' . $file . ', line ' . $line . ']';
if (!empty($errorConfig['trace'])) {
// https://bugs.php.net/bug.php?id=65322
if (version_compare(PHP_VERSION, '5.4.21', '<')) {
if (!class_exists('Debugger')) {
App::load('Debugger');
}
if (!class_exists('CakeText')) {
App::uses('CakeText', 'Utility');
App::load('CakeText');
}
}
$trace = Debugger::trace(array('start' => 1, 'format' => 'log'));
$message .= "\nTrace:\n" . $trace . "\n";
}

0 comments on commit 5a7507d

Please sign in to comment.
You can’t perform that action at this time.