[PHP-DEV] Strict properties and unserialization

2022-08-16 Thread Pierrick Charron
Hi internals, We (Sergey and I) would like to introduce you to a problem [1] that was reported by Tim Düsterhus and others about the Strict Properties RFC [2] that was implemented in PHP8.2. The RFC missed a part about how PHP should handle unserialization of objects with undefined properties. Ex

Re: [PHP-DEV] Strict properties and unserialization

2022-08-16 Thread Tim Düsterhus
Hi On 8/16/22 18:33, Pierrick Charron wrote: In this case PHP will not trigger any deprecation warnings but it probably should. It was something that was not thought about while writing the RFC (at least the RFC doesn't mention anything about this). Note that for native classes (e.g. the Rando