Máté Kocsis
adb45a63c0
Fix GH-9186 @strict-properties can be bypassed using unserialization ( #9354 )
...
* Emit deprecation warnings when adding dynamic properties to classes during unserialization - this will become an Error in php 9.0.
(Adding dynamic properties in other contexts was already a deprecation warning - the use case of unserialization was overlooked)
* Throw an error when attempting to add a dynamic property to a `readonly` class when unserializing
* Add new serialization methods `__serialize`/`__unserialize` for SplFixedArray to avoid creating deprecated dynamic
properties that would then be added to the backing fixed-size array
* Don't add named dynamic/declared properties (e.g. $obj->foo) of SplFixedArray to the backing array when unserializing
* Update tests to declare properties or to expect the deprecation warning
* Add news entry
Co-authored-by: Tyson Andre <tysonandre775@hotmail.com >
2022-08-30 07:46:32 -04:00
..
2022-08-30 07:46:32 -04:00
2022-06-12 13:37:23 +02:00
2021-04-08 10:36:44 +02:00
2021-04-08 10:36:44 +02:00
2021-11-10 11:00:37 +01:00
2021-08-20 12:54:39 +02:00
2021-05-26 12:18:51 +02:00
2021-04-08 10:36:44 +02:00
2021-04-08 10:36:44 +02:00
2021-04-08 10:36:44 +02:00
2021-04-08 10:36:44 +02:00
2021-04-08 10:36:44 +02:00
2021-05-26 12:18:51 +02:00
2021-03-29 14:17:55 +02:00
2021-08-20 10:08:22 +02:00
2022-08-30 07:46:32 -04:00
2021-05-26 12:18:51 +02:00
2021-04-08 10:36:44 +02:00
2021-05-26 12:18:51 +02:00
2021-05-26 12:18:51 +02:00
2022-05-05 10:14:56 +02:00
2021-08-20 14:15:23 +02:00
2021-04-08 10:36:44 +02:00
2021-05-26 12:18:51 +02:00
2019-01-04 12:40:28 +01:00
2021-04-08 10:36:44 +02:00
2020-03-09 15:01:31 +01:00
2021-04-08 10:36:44 +02:00
2021-06-29 17:13:02 +02:00
2021-01-31 21:15:23 -08:00
2021-04-08 10:36:44 +02:00
2021-05-26 12:18:51 +02:00
2021-11-10 11:00:37 +01:00
2019-05-11 17:16:50 +02:00
2021-11-10 11:00:37 +01:00
2021-04-08 10:36:44 +02:00
2021-04-08 10:36:44 +02:00
2021-04-08 10:36:44 +02:00
2022-05-23 16:51:32 +02:00
2022-05-23 16:49:12 +02:00
2021-04-08 10:36:44 +02:00
2021-04-08 10:36:44 +02:00
2021-04-08 10:36:44 +02:00
2021-04-08 10:36:44 +02:00
2021-04-08 10:36:44 +02:00
2021-04-08 10:36:44 +02:00
2021-04-08 10:36:44 +02:00
2021-04-08 10:36:44 +02:00
2021-04-08 10:36:44 +02:00
2021-04-08 10:36:44 +02:00
2021-04-08 10:36:44 +02:00
2021-04-08 10:36:44 +02:00
2021-04-08 10:36:44 +02:00
2021-04-08 10:36:44 +02:00
2021-04-08 10:36:44 +02:00
2021-04-08 10:36:44 +02:00
2021-04-08 10:36:44 +02:00
2021-04-08 10:36:44 +02:00
2021-04-08 10:36:44 +02:00
2021-04-08 10:36:44 +02:00
2021-04-08 10:36:44 +02:00
2021-04-08 10:36:44 +02:00
2021-04-08 10:36:44 +02:00
2021-04-08 10:36:44 +02:00
2021-04-08 10:36:44 +02:00
2018-09-21 14:12:25 +02:00
2021-04-08 10:36:44 +02:00
2021-04-08 10:36:44 +02:00
2021-04-08 10:36:44 +02:00
2021-04-08 10:36:44 +02:00
2021-04-08 10:36:44 +02:00
2021-07-19 13:44:20 +02:00
2021-04-08 10:36:44 +02:00
2021-07-14 09:36:26 +02:00
2021-11-10 11:00:37 +01:00
2021-04-08 10:36:44 +02:00
2021-04-08 10:36:44 +02:00
2021-05-26 12:18:51 +02:00
2021-05-26 12:18:51 +02:00
2021-04-08 10:36:44 +02:00
2021-04-08 10:36:44 +02:00
2021-05-26 12:18:51 +02:00
2021-05-26 12:18:51 +02:00
2021-04-08 10:36:44 +02:00
2021-04-08 10:36:44 +02:00
2021-05-26 12:18:51 +02:00
2021-05-26 12:18:51 +02:00
2021-04-08 10:36:44 +02:00