Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
[VarDumper] Fix dumpingArrayObject withDumpDataCollector#50960
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
092bda8 to1058e35Compare
nicolas-grekas left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
nice thanks!
src/Symfony/Component/VarDumper/Dumper/ContextProvider/SourceContextProvider.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
1058e35 tob25f377Compare
lyrixx left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Yeah! Thanks
nicolas-grekas commentedJul 13, 2023
Thank you@HypeMC. |
The main problem here is that the
ArrayObjectstoragekey inthe array returned by__debugInfo()seems to be a reference:https://3v4l.org/8rSFn (a bug in PHP perhaps?)Since the
DumpDataCollectordoes the actual dumping in the__destructor()theArrayObjectstorageis modified by then which messes with the object created by theVarCloner.