-
Notifications
You must be signed in to change notification settings - Fork 7.8k
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
Custom properties of DateTimeImmutable child classes are not serialized #10152
Labels
Comments
This is not deliberate, and hence a bug. |
derickr
added a commit
to derickr/php-src
that referenced
this issue
Jan 25, 2023
derickr
added a commit
to derickr/php-src
that referenced
this issue
Jan 31, 2023
derickr
added a commit
that referenced
this issue
Jan 31, 2023
Thank you very much @derickr 🎉 ☀️ |
Was this released in 8.2.3, because I cannot find anything in the changelog cc @mvhirsch |
8.2.3 was an irregular release that was coordinated with other projects. It only contains the security fixes. The fix is included in the changelog for 8.2.4: Lines 22 to 23 in 8c87a5c
|
Thanks! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
The following code:
Resulted in this output:
But I expected this output instead:
The propblem can be observed here: https://3v4l.org/8q4Or
Apparently,
MyDateTimeImmutable::$myProperty
is not included in the serialized string anymore on PHP 8.2.0. On PHP 8.0/8.1, it does appear there and is unserialized properly.PHP Version
PHP 8.2.0
Operating System
No response
The text was updated successfully, but these errors were encountered: