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
@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
@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
@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 This content has been proxied by September (3851b).Proxy Information
text/gemini