-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
RedisSessionHandler reported an error after upgrading phpredis to 6.0.0 #51700
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
Comments
Related to phpredis/phpredis#2363 |
Ok , now i need downgrade phpredis |
@TianLiangZhou @nicolas-grekas any idea please, how to force apt install php8.2-redis to install phpredis 5.3.7 extension instead of 6.0.0 ? |
Install |
Using Platform.sh? If so:
This will use phpredis 6.0.1 where the bug is fixed. Using a custom phpredis version on Platform.sh is documented here. I hope this helps (it fixed my project). |
Correct +1 |
I also see this with Redis
while |
or remove the apt package and install via pecl
|
If this persists despite phpredis/phpredis#2363, this should be reported there, because an argument with type Closing since this is not on our side. Please link back here if you open the issue on phpredis. |
…y behaviors of internal classes (nicolas-grekas) This PR was merged into the 6.3 branch. Discussion ---------- [Cache][VarExporter] Fix proxy generation to deal with edgy behaviors of internal classes | Q | A | ------------- | --- | Branch? | 6.3 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | Fix #51770, #51679, #51700 | License | MIT Instead of #51838 This fixes the issue by not passing default values explicitly when they were not provided during the call to the method. Commits ------- c66a2f7 [Cache][VarExporter] Fix proxy generation to deal with edgy behaviors of internal classes
Symfony version(s) affected
6.3.0
Description
deprecation.INFO: Deprecated: Redis::expire(): Passing null to parameter #3 ($mode) of type ?string is deprecated {"exception":"[object] (ErrorException(code: 0): Deprecated: Redis::expire(): Passing null to parameter #3 ($mode) of type ?string is deprecated at
snc_redis.DEBUG: Executing command "EXPIRE sess:dlrqcnojkf0e2l2nnr2ovg79rj 604800 " [] []
request.CRITICAL: Uncaught PHP Exception ErrorException: "Warning: Redis::expire(): Unknown expiration modifier ''"
How to reproduce
upgrading phpredis to 6.0.0
Possible Solution
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: