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

Deprecate SplFixedArray::__wakeup() #9704

Merged
merged 1 commit into from
Aug 8, 2024

Conversation

TysonAndre
Copy link
Contributor

GH-9354 added the __serialize and __unserialize method, so unserialize() and other unserializers will call __unserialize instead of __wakeup for SplFixedArray and userland subclasses.

This targets php 8.3 because we've already released betas and release candidates for php 8.2.

This was brought up in review comments for php 8.2: #9354 (comment)

@kocsismate
Copy link
Member

If you think an RFC is necessary, feel free to add this to https://wiki.php.net/rfc/deprecations_php_8_3.

@TysonAndre TysonAndre requested a review from Girgias as a code owner October 7, 2023 13:51
@Girgias
Copy link
Member

Girgias commented Aug 8, 2024

@TysonAndre could you rebase this as this has been accepted via an RFC now?

phpGH-9354 added the `__serialize` and `__unserialize` method,
so unserialize() and other unserializers will call `__unserialize`
instead of `__wakeup` for SplFixedArray and userland subclasses.

This targets php 8.3 because we've already released betas and release
candidates for php 8.2.
@TysonAndre TysonAndre force-pushed the deprecate-SplFixedArray-wakeup branch from ac679ae to 684b87a Compare August 8, 2024 14:38
Copy link
Member

@Girgias Girgias left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will follow-up with the NEWS/UPGRADING entry and using the Deprecated attribute.

Took a while but thanks for bringing this up at the time!

@Girgias Girgias merged commit 43def0a into php:master Aug 8, 2024
10 of 11 checks passed
Girgias added a commit to Girgias/php-src that referenced this pull request Aug 8, 2024
Girgias added a commit that referenced this pull request Aug 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants