Skip to content

[HttpFoundation] Do not throw when setSaveHandler is called and headers have already been sent #24947

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

Conversation

sroze
Copy link
Contributor

@sroze sroze commented Nov 13, 2017

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

In #23711 we've introduced this throw... not sure why. Apparently, no tests are failing if we remove this. Bug #24941 has been opened because of this throw. 3 good reasons to remove it.

@sroze sroze changed the title Do not throw when setSaveHandler is called and headers have already… [HttpFoundation] Do not throw when setSaveHandler is called and headers have already… Nov 13, 2017
@sroze sroze force-pushed the issue-24941-just-do-not-throw-when-headers-already-sent branch from df88fdb to c8bc22e Compare November 13, 2017 13:37
@sroze sroze changed the title [HttpFoundation] Do not throw when setSaveHandler is called and headers have already… [HttpFoundation] Do not throw when setSaveHandler is called and headers have already been sent Nov 13, 2017
@chalasr chalasr added this to the 2.7 milestone Nov 13, 2017
nicolas-grekas added a commit that referenced this pull request Nov 13, 2017
…kas, sroze)

This PR was merged into the 2.7 branch.

Discussion
----------

[HttpFoundation] Fix session-related BC break

| Q             | A
| ------------- | ---
| Branch?       | 2.7
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #24941, #24934, #24947 and #24946
| License       | MIT
| Doc PR        | -

Conservative fix.

Commits
-------

38186aa [HttpFoundation] Add test
3eaa188 [HttpFoundation] Fix session-related BC break
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