-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
fix the handling of timestamp in the MongoDBSessionHandler #26403
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
add missing createDateTime
i need help with fabbot the code is PSR2 - what am i doing wrong here? |
#26403 (comment)
|
@phansys 🚀 you sir deserve a ☕️ - many thx! |
#24447 made some cleanup to other places where |
We should indeed |
@xabbuh many thx, so using |
@xabbuh feedback adressed, looks much nicer now, many thx for your guidance 🚀 |
i am pretty confident, that the changes in this particular pr have nothing todo with the failing build in appveyor, anything i can do to fix this? |
@nicolas-grekas could you check why the test about prepared command is failing on Appveyor ? is it a volatile test ? |
Thank you @hjanuschka. |
… (hjanuschka) This PR was submitted for the master branch but it was squashed and merged into the 4.0 branch instead (closes #26403). Discussion ---------- fix the handling of timestamp in the MongoDBSessionHandler | Q | A | ------------- | --- | Branch? | master | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | License | MIT in the process of upgrading from 3.4 to 4.0 we stumbled upon a issue with mongo session handler. ``` [05-Mar-2018 11:12:57 Europe/Vienna] PHP Fatal error: Uncaught Error: Call to undefined method Symfony\Component\HttpFoundation\Session\Storage\Handler\MongoDbSessionHandler::createDateTime() in /opt/APP/vendor/symfony/http-foundation/Session/Storage/Handler/MongoDbSessionHandler.php:144 Stack trace: #0 [internal function]: Symfony\Component\HttpFoundation\Session\Storage\Handler\MongoDbSessionHandler->updateTimestamp('96d983b59f8aef8...', 'user_obj|O:9:"k...') #1 [internal function]: session_write_close() #2 {main} thrown in /opt/APP/vendor/symfony/http-foundation/Session/Storage/Handler/MongoDbSessionHandler.php on line 144 ``` this PR re-add's the method, that somehow got removed in 4.0 branch, whereas the interface forces to have the implemantation. Commits ------- 97d9ea8 fix the handling of timestamp in the MongoDBSessionHandler
This PR is marked as closed instead of merged, because I rebased your contribution to apply it to the 4.0 branch instead (and I squashed the commits to clean the history). Your authorship is preserved though (see 97d9ea8) |
saw it - many thx ❤️ (first symfony related merged pr 🚀 ). next time, if you wan't me to branch from a specific version or to squash you can just tell me 👍 |
in the process of upgrading from 3.4 to 4.0 we stumbled upon a issue with mongo session handler.
this PR re-add's the method, that somehow got removed in 4.0 branch, whereas the interface forces to have the implemantation.