Skip to content

[VarDumper] fixes #23176

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
Jun 14, 2017
Merged

[VarDumper] fixes #23176

merged 1 commit into from
Jun 14, 2017

Conversation

nicolas-grekas
Copy link
Member

Q A
Branch? 2.7
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #23115 and #23151 (hopefully)
License MIT
Doc PR -

it looks like stream_context_get_params can return false (looking at php-src and #23151)
and doing a foreach on SplObjectStorage changes its internal iterator state.

@fabpot
Copy link
Member

fabpot commented Jun 14, 2017

Thank you @nicolas-grekas.

@fabpot fabpot merged commit d7238c9 into symfony:2.7 Jun 14, 2017
fabpot added a commit that referenced this pull request Jun 14, 2017
This PR was merged into the 2.7 branch.

Discussion
----------

[VarDumper] fixes

| Q             | A
| ------------- | ---
| Branch?       | 2.7
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #23115 and #23151 (hopefully)
| License       | MIT
| Doc PR        | -

it looks like stream_context_get_params can return false (looking at php-src and #23151)
and doing a foreach on SplObjectStorage changes its internal iterator state.

Commits
-------

d7238c9 [VarDumper] fixes
@martijnhartlief
Copy link

@fabpot I might be understanding it wrong, but both #23115 and #23151 are issues related to 3.3.2, but it seems to be merged into 2.7.

@xabbuh
Copy link
Member

xabbuh commented Jun 15, 2017

We regularly merge branches up to master. Thus, changes done in 2.7 will also land in all her still maintained releases.

@martijnhartlief
Copy link

Okay thanks for the explanation :)

@nicolas-grekas nicolas-grekas deleted the fix-vp branch July 10, 2017 15:58
fabpot added a commit that referenced this pull request Apr 22, 2018
This PR was squashed before being merged into the 2.7 branch (closes #26999).

Discussion
----------

[VarDumper] Fix dumping of SplObjectStorage

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

This is a bug fix for dumping instances of `SplObjectStorage`. The bug was introduced in #23176, by fixing that the internal pointer was changed upon dumping. I added tests for both issues.

Commits
-------

b2ac6b6 [VarDumper] Fix dumping of SplObjectStorage
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.

6 participants