-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[HttpFoundation] Removed compatibility layer for PHP <5.4 sessions #24338
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
[HttpFoundation] Removed compatibility layer for PHP <5.4 sessions #24338
Conversation
875696b
to
241566f
Compare
@@ -47,9 +47,8 @@ public function testEnvironment() | |||
|
|||
public function testGetSession() | |||
{ | |||
$session = $this->getMockBuilder(Session::class)->disableOriginalConstructor()->getMock(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is this changed again?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because of the fact that the session is constructed using an instance of NativeSessionStorage
that by default used the deprecated SessionHandlerProxy
, this test did not pass due to the deprecation error. Now there are no deprecations, so no need for disabling the original constructor,
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should be using MockArraySessionStorage
rather than NativeSessionStorage
in tests (or create a mock as before).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CHANGELOG should be updated to mention removals
Signed-off-by: Alexandru Furculita <alex@furculita.net>
241566f
to
37d1a21
Compare
Changelog updated |
AppVeyor failure not related to this PR |
Thank you @afurculita. |
…5.4 sessions (afurculita) This PR was merged into the 4.0-dev branch. Discussion ---------- [HttpFoundation] Removed compatibility layer for PHP <5.4 sessions | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | yes | BC breaks? | yes | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - This is a follow-up of #24239. This PR removes the compatibility layer added for sessions for PHP <5.4. Commits ------- 37d1a21 Removed compatibility layer for PHP <5.4 sessions
This PR was merged into the master branch. Discussion ---------- Update outdated session documentation with SF 4 The PHP 5.3 compatibilty and proxy logic has been removed in symfony/symfony#24338 The MemcacheSessionHandler is removed with symfony/symfony#24447 Commits ------- bd765c1 Update outdated session documentation with SF 4
This is a follow-up of #24239. This PR removes the compatibility layer added for sessions for PHP <5.4.