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

Zend: Implement __unserialize() for Exception/Error #19826

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

Closed

Conversation

Copy link
Member

@Girgias Girgias commented Sep 13, 2025

This makes the DOM classes the only classes that only have __sleep() magic methods, and __wakeup() methods without a corresponding __unserialize() magic method, as it is needed to allow serialization of child classes.

Copy link
Member Author

Girgias commented Sep 15, 2025

I am closing this as the reason for __wakeup() to exist is to verify the type of the message and code properties. As those would, hopefully, use actual property types in PHP 9 we can then just remove the __wakeup() method as it will then serve no purpose.

@Girgias Girgias deleted the exceptions-unserialize-magicmethod branch September 15, 2025 17:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers

@TimWolla TimWolla Awaiting requested review from TimWolla

@kocsismate kocsismate Awaiting requested review from kocsismate kocsismate will be requested when the pull request is marked ready for review kocsismate is a code owner

@bukka bukka Awaiting requested review from bukka bukka will be requested when the pull request is marked ready for review bukka is a code owner

@nielsdos nielsdos Awaiting requested review from nielsdos nielsdos will be requested when the pull request is marked ready for review nielsdos is a code owner

Assignees
No one assigned
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

1 participant

AltStyle によって変換されたページ (->オリジナル) /