mirror of
https://github.com/Seldaek/monolog.git
synced 2026-04-26 08:05:53 +03:00
[GH-ISSUE #828] Recursion on GLOBALS variable in NormalizerFormatter #320
Labels
No labels
Bug
Documentation
Feature
Needs Work
Support
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/monolog#320
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Programie on GitHub (Jul 28, 2016).
Original GitHub issue: https://github.com/Seldaek/monolog/issues/828
The NormalizerFormatter tries to normalise the GLOBALS variable which is passed in the context array in the ErrorHandler.
Normalising the GLOBALS variable ends in a recursion as the array contains an element "GLOBALS" referring to itself.
Example output of
var_dump($GLOBALS)(which correctly handles recursion):Of course, this also affects passing other context variables containing recursive references. But using the ErrorHandler, this always seems to be a problem.