Fixes #6247: Logger and error handler are now using slightly less memory

This commit is contained in:
Alexander Makarov
2014-12-17 00:38:38 +03:00
parent 3b9dd7f411
commit ab0033542b
3 changed files with 4 additions and 3 deletions

View File

@ -140,7 +140,7 @@ abstract class ErrorHandler extends Component
$exception = new ErrorException($message, $code, $code, $file, $line);
// in case error appeared in __toString method we can't throw any exception
$trace = debug_backtrace(0);
$trace = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS);
array_shift($trace);
foreach ($trace as $frame) {
if ($frame['function'] == '__toString') {