bug #24910 [HttpKernel][Debug] Remove noise from stack frames of deprecations (nicolas-grekas)

This PR was merged into the 3.3 branch.

Discussion
----------

[HttpKernel][Debug] Remove noise from stack frames of deprecations

| Q             | A
| ------------- | ---
| Branch?       | 3.3
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #24625
| License       | MIT
| Doc PR        | -

Collecting arguments of deprecations is too heavy, and was unintended in fact.

Commits
-------

f154be3 [HttpKernel][Debug] Remove noise from stack frames of deprecations
This commit is contained in:
Nicolas Grekas 2017-11-10 18:58:45 +01:00
commit d4d8d3a54c
2 changed files with 2 additions and 2 deletions

View File

@ -707,7 +707,7 @@ class ErrorHandler
}
if (!($throw || $this->scopedErrors & $type)) {
for ($i = 0; isset($lightTrace[$i]); ++$i) {
unset($lightTrace[$i]['args']);
unset($lightTrace[$i]['args'], $lightTrace[$i]['object']);
}
}

View File

@ -86,7 +86,7 @@ class DebugHandlersListener implements EventSubscriberInterface
$handler->screamAt($levels);
}
if ($this->scope) {
$handler->scopeAt($this->levels);
$handler->scopeAt($levels & ~E_USER_DEPRECATED & ~E_DEPRECATED);
} else {
$handler->scopeAt(0, true);
}