Skip to content
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

[8.x] Added support of PHP 7.3 to RateLimiter middleware(queue) serialization #35986

Merged
merged 1 commit into from
Jan 22, 2021

Conversation

dkulyk
Copy link
Contributor

@dkulyk dkulyk commented Jan 21, 2021

PHP 7.3 does not support __serialize/__unserialize but Laravel 8 require php 7.3 and later.

Fixes #35868 fro PHP 7.3+

@dkulyk dkulyk changed the title Added tests. Added support of PHP 7.3 Added support of PHP 7.3 to Queue middleware serialization. Jan 21, 2021
@dkulyk dkulyk changed the title Added support of PHP 7.3 to Queue middleware serialization. [8.x] Added support of PHP 7.3 to Queue middleware serialization. Jan 21, 2021
@dkulyk dkulyk changed the title [8.x] Added support of PHP 7.3 to Queue middleware serialization. [8.x] Added support of PHP 7.3 to RateLimiter middleware(queue) serialization. Jan 21, 2021
@GrahamCampbell
Copy link
Member

What does this fix?

@dkulyk
Copy link
Contributor Author

dkulyk commented Jan 22, 2021

Taylor fixed #35868 only for PHP7.4+. This PR fixed the issue for PHP7.3

@driesvints
Copy link
Member

Won't this break things for all jobs who are already implementing __serialize?

@dkulyk
Copy link
Contributor Author

dkulyk commented Jan 22, 2021

Won't this break things for all jobs who are already implementing __serialize?

This has effect only for serialisation of RateLimited(WithRedis). Jobs can have any other implementation.

@dkulyk
Copy link
Contributor Author

dkulyk commented Jan 22, 2021

RateLimited serialized with current __serialize will be unserialized with __wakeup implementation.

@taylorotwell taylorotwell merged commit 4ad4f19 into laravel:8.x Jan 22, 2021
@dkulyk dkulyk deleted the middleware_serialization branch January 22, 2021 15:54
@GrahamCampbell GrahamCampbell changed the title [8.x] Added support of PHP 7.3 to RateLimiter middleware(queue) serialization. [8.x] Added support of PHP 7.3 to RateLimiter middleware(queue) serialization Jan 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants