Ancestors

Toot

Written by Chris Abbey on 2024-10-19 at 00:33

ok, wow. TIL #PHP's DatePeriod class can not be serialized on php8.1 and then deserialized on php8.2 or 8.3. https://3v4l.org/B3RA1 I didn't see this compatibility issue listed on the 8.2 migration guide. Anyone else hit this? Just hit the big red button on a migration to 8.3 over this. :/

=> More informations about this toot | More toots from cabbey@phpc.social

Descendants

Written by Kevin Boyd (he/him) 🇨🇦 on 2024-10-19 at 00:55

@cabbey Looks like it is specifically ";s:16:"include_end_date";b:0;" being missing from the DatePeriod serialized string that is the issue.

=> More informations about this toot | More toots from kboyd@phpc.social

Written by Derick Rethans on 2024-10-19 at 07:49

@cabbey I don't think we ever guaranteed portability between language versions for serialised information. But the docs are silent in it.

=> More informations about this toot | More toots from derickr@phpc.social

Written by Chris Abbey on 2024-10-19 at 18:43

@derickr yeah, I searched quite a bit and didn’t find anything one way or another. Monday I’ll take a deeper dive to see if we are persisting these anywhere other than memcached with a short ttl… I really hope not. Sadly this is why I discourage the use of default serialization, and always write a version field in my serializers.

=> More informations about this toot | More toots from cabbey@phpc.social

Proxy Information
Original URL
gemini://mastogem.picasoft.net/thread/113331276044753315
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
410.089398 milliseconds
Gemini-to-HTML Time
1.013719 milliseconds

This content has been proxied by September (3851b).