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

@ -138,7 +138,7 @@ class Logger extends Component
$traces = [];
if ($this->traceLevel > 0) {
$count = 0;
$ts = debug_backtrace();
$ts = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS);
array_pop($ts); // remove the last trace since it would be the entry script, not very useful
foreach ($ts as $trace) {
if (isset($trace['file'], $trace['line']) && strpos($trace['file'], YII2_PATH) !== 0) {