Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[VarDumper] Keep a ref to objects to ensure their handle cannot be reused while cloning #30350

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 23, 2019

Conversation

nicolas-grekas
Copy link
Member

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

Fixes the root issue that led to #30311 (comment)

@nicolas-grekas nicolas-grekas added this to the 3.4 milestone Feb 22, 2019
@nicolas-grekas nicolas-grekas changed the title [VarDumper] Keep a ref to discovered objects to prevent their destruction [VarDumper] Keep a ref to objects to ensure their handle cannot be reused while cloning Feb 22, 2019
@fabpot
Copy link
Member

fabpot commented Feb 23, 2019

Thank you @nicolas-grekas.

@fabpot fabpot merged commit 29a0683 into symfony:3.4 Feb 23, 2019
fabpot added a commit that referenced this pull request Feb 23, 2019
…annot be reused while cloning (nicolas-grekas)

This PR was merged into the 3.4 branch.

Discussion
----------

[VarDumper] Keep a ref to objects to ensure their handle cannot be reused while cloning

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

Fixes the root issue that led to #30311 (comment)

Commits
-------

29a0683 [VarDumper] Keep a ref to objects to ensure their handle cannot be reused while cloning
@nicolas-grekas nicolas-grekas deleted the vd-fixrefcount branch February 27, 2019 13:51
This was referenced Mar 3, 2019
nicolas-grekas added a commit that referenced this pull request May 9, 2025
This PR was merged into the 7.3 branch.

Discussion
----------

[VarDumper] Remove unused code

| Q             | A
| ------------- | ---
| Branch?       | 7.3
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Issues        |
| License       | MIT

Not all was removed in the [PR](#52619).

I did not remove [objects](#30350). It did look like unused code. Maybe some comment in code needed?

Last uses of `Cookie` and `refs` were deleted [here](https://github.com/symfony/symfony/pull/41295/files#diff-27fadd95a89adb229b33890577a4495e15bdbc1b25f12c44f7afa8a12a00d37b).

Last use of $[values](ff00f8f#diff-27fadd95a89adb229b33890577a4495e15bdbc1b25f12c44f7afa8a12a00d37bR100).

Commits
-------

fbc4c34 [VarDumper] Remove unused code
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.

3 participants