Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[HttpFoundation] Fix session-related BC break#24952

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

Merged
nicolas-grekas merged 2 commits intosymfony:2.7fromnicolas-grekas:session-fix
Nov 13, 2017

Conversation

@nicolas-grekas
Copy link
Member

@nicolas-grekasnicolas-grekas commentedNov 13, 2017
edited
Loading

QA
Branch?2.7
Bug fix?yes
New feature?no
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed tickets#24941,#24934,#24947 and#24946
LicenseMIT
Doc PR-

Conservative fix.

afoeder reacted with hooray emoji
@sroze
Copy link
Contributor

See#24947 and#24946. They've been given a 👍 in issues on top of that.

@nicolas-grekas
Copy link
MemberAuthor

nicolas-grekas commentedNov 13, 2017
edited
Loading

@sroze yes but I prefer this approach, as it's more conservative: the diff with pre-7.2-concerns is much lighter, thus easier to validate.

Copy link
Contributor

@srozesroze left a comment

Choose a reason for hiding this comment

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

Also, it would be nice to add a test for the fixed issue with the null session handler. You've got one you can copy/paste from my other PR.

publicfunctionsetOptions(array$options)
{
if (headers_sent()) {
if (headers_sent() || (\PHP_VERSION_ID >=50400 && \PHP_SESSION_ACTIVE ===session_status())) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you move that in a private method?

@sroze
Copy link
Contributor

@nicolas-grekas I don't mind either tbh so... 👍

@nicolas-grekas
Copy link
MemberAuthor

nicolas-grekas commentedNov 13, 2017
edited
Loading

I borrowed your test case.
No need for the private method, that's diff boilerplate to me, and will be reduced to one instruction on 3.3.

@sroze
Copy link
Contributor

will be reduced to one instruction on master.

Could you clarify this one?

@nicolas-grekas
Copy link
MemberAuthor

nicolas-grekas commentedNov 13, 2017
edited
Loading

from\PHP_VERSION_ID >= 50400 && \PHP_SESSION_ACTIVE === session_status()
to\PHP_SESSION_ACTIVE === session_status()

@sroze
Copy link
Contributor

Hehe, true 👍

@nicolas-grekas
Copy link
MemberAuthor

Thank you@sroze.

@nicolas-grekasnicolas-grekas merged commit38186aa intosymfony:2.7Nov 13, 2017
nicolas-grekas added a commit that referenced this pull requestNov 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 test3eaa188 [HttpFoundation] Fix session-related BC break
@nicolas-grekasnicolas-grekas deleted the session-fix branchNovember 13, 2017 18:05
This was referencedNov 13, 2017
This was referencedNov 21, 2017
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

1 more reviewer

@srozesrozesroze left review comments

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Projects

None yet

Milestone

2.7

Development

Successfully merging this pull request may close these issues.

3 participants

@nicolas-grekas@sroze@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp