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] Ensure RedisSessionHandler::updateTimestamp returns a boolean#27632

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 1 commit intosymfony:4.1fromMatTheCat:redis-session-timestamp
Jun 19, 2018
Merged

[HttpFoundation] Ensure RedisSessionHandler::updateTimestamp returns a boolean#27632

nicolas-grekas merged 1 commit intosymfony:4.1fromMatTheCat:redis-session-timestamp
Jun 19, 2018

Conversation

@MatTheCat
Copy link
Contributor

@MatTheCatMatTheCat commentedJun 18, 2018
edited
Loading

QA
Branch?4.1
Bug fix?yes
New feature?no
BC breaks?no
Deprecations?no
Tests pass?yes
LicenseMIT

Since v1.1.0 predis doesn't return the result ofEXPIRE as a boolean, thus breakingupdateTimestamp implementation.

Maybe it's worth mentioning error messages were useless here:

  • Symfony:User Warning: session_write_close(): Failed to write session data with Symfony\Component\HttpFoundation\Session\Storage\Handler\RedisSessionHandler handler
  • PHP:session_write_close(): Session callback expects true/false return value

@nicolas-grekas
Copy link
Member

What's the return type and value now? Any link?

@nicolas-grekasnicolas-grekas added this to the4.1 milestoneJun 18, 2018
@MatTheCat
Copy link
ContributorAuthor

MatTheCat commentedJun 18, 2018
edited
Loading

In my case I get0 or1 as an integer. I guess this comes frompredis/predis@b02e3f4

@MatTheCat
Copy link
ContributorAuthor

Hoping to see this in 4.1.1 😁

@nicolas-grekas
Copy link
Member

Thank you@MatTheCat.

@nicolas-grekasnicolas-grekas merged commit079b944 intosymfony:4.1Jun 19, 2018
nicolas-grekas added a commit that referenced this pull requestJun 19, 2018
…mp returns a boolean (MatTheCat)This PR was merged into the 4.1 branch.Discussion----------[HttpFoundation] Ensure RedisSessionHandler::updateTimestamp returns a boolean| Q             | A| ------------- | ---| Branch?       | 4.1| Bug fix?      | yes| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| License       | MITSince v1.1.0 predis doesn't return the result of `EXPIRE` as a boolean, thus breaking `updateTimestamp` implementation.Maybe it's worth mentioning error messages were useless here:- Symfony: `User Warning: session_write_close(): Failed to write session data with Symfony\Component\HttpFoundation\Session\Storage\Handler\RedisSessionHandler handler`- PHP: `session_write_close(): Session callback expects true/false return value`Commits-------079b944 Ensure updateTimestamp returns a boolean
@fabpotfabpot mentioned this pull requestJun 25, 2018
@MatTheCatMatTheCat deleted the redis-session-timestamp branchJuly 20, 2018 08:53
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@nicolas-grekasnicolas-grekasnicolas-grekas approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

4.1

Development

Successfully merging this pull request may close these issues.

3 participants

@MatTheCat@nicolas-grekas@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp