Skip to content

Conversation

@HypeMC
Copy link
Member

@HypeMC HypeMC commented Jul 12, 2023

Q A
Branch? 5.4
Bug fix? yes
New feature? no
Deprecations? no
Tickets Fix #50940
License MIT
Doc PR -

The main problem here is that the ArrayObjectstorage key in the array returned by __debugInfo() seems to be a reference: https://3v4l.org/8rSFn (a bug in PHP perhaps?)

Since the DumpDataCollector does the actual dumping in the __destructor() the ArrayObjectstorage is modified by then which messes with the object created by the VarCloner.

Copy link
Member

@nicolas-grekas nicolas-grekas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice thanks!

@HypeMC HypeMC force-pushed the fix-dumping-arrayobject branch from 1058e35 to b25f377 Compare July 13, 2023 07:33
Copy link
Member

@lyrixx lyrixx left a 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
Copy link
Member

Thank you @HypeMC.

@nicolas-grekas nicolas-grekas merged commit 23da9db into symfony:5.4 Jul 13, 2023
@HypeMC HypeMC deleted the fix-dumping-arrayobject branch July 13, 2023 09:22
This was referenced Jul 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants