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
..
2019-03-22 10:43:06 +01:00
2019-04-09 17:27:02 +02:00
2019-03-22 10:43:06 +01:00
2021-11-26 14:10:11 +01:00
2021-03-01 13:29:49 +03:00
2019-04-09 17:19:44 +02:00
2019-09-16 14:37:16 +02:00
2021-11-26 14:10:11 +01:00
2019-11-07 21:31:47 +01:00
2020-02-25 09:51:32 +01:00
2021-08-11 10:35:47 +02:00
2020-02-03 22:52:20 +01:00
2020-02-03 22:52:20 +01:00
2020-02-03 22:52:20 +01:00
2021-11-26 14:10:11 +01:00
2020-02-03 22:52:20 +01:00
2020-02-03 22:52:20 +01:00
2020-02-03 22:52:20 +01:00
2019-11-07 21:31:47 +01:00
2020-09-18 14:28:32 +02:00
2020-02-03 22:52:20 +01:00
2020-09-18 14:28:32 +02:00
2019-11-07 21:31:47 +01:00
2020-09-15 14:26:16 +02:00
2021-11-26 14:10:11 +01:00
2020-08-09 22:03:36 +02:00
2020-08-09 22:03:36 +02:00
2022-08-30 07:46:32 -04:00
2022-08-30 07:46:32 -04:00
2022-08-30 07:46:32 -04:00
2020-08-09 22:03:36 +02:00
2018-10-14 19:45:12 +02:00
2022-08-30 07:46:32 -04:00
2022-08-30 07:46:32 -04:00
2021-08-11 10:35:47 +02:00
2018-10-14 19:45:12 +02:00
2018-10-14 19:45:12 +02:00
2021-08-11 10:35:47 +02:00
2021-08-11 10:35:47 +02:00
2020-02-03 22:52:20 +01:00
2021-07-19 15:59:11 +02:00
2020-02-03 22:52:20 +01:00
2019-11-07 21:31:47 +01:00
2020-02-03 22:52:20 +01:00
2020-02-03 22:52:20 +01:00
2020-05-28 13:55:38 +02:00
2020-04-22 16:41:04 +02:00
2022-04-29 11:25:55 +01:00
2021-04-22 10:22:50 +02:00
2021-08-11 10:35:47 +02:00
2021-08-11 10:35:47 +02:00
2020-02-03 22:52:20 +01:00
2021-08-11 10:35:47 +02:00
2021-07-30 16:13:05 +02:00
2021-08-11 10:35:47 +02:00
2021-06-11 11:57:42 +02:00
2020-05-28 13:55:38 +02:00
2018-10-15 04:33:09 +02:00
2021-08-11 10:35:47 +02:00
2020-09-15 14:26:16 +02:00
2018-10-14 19:46:15 +02:00
2021-08-11 10:35:47 +02:00
2021-06-11 11:57:42 +02:00
2022-08-30 07:46:32 -04:00
2020-02-03 22:52:20 +01:00
2020-02-03 22:52:20 +01:00
2019-09-16 11:38:35 +02:00
2017-09-12 18:18:44 +02:00
2017-07-04 19:06:16 -07:00
2019-11-07 21:31:47 +01:00
2017-09-11 12:38:20 +02:00
2017-08-12 13:11:35 +02:00
2021-03-01 13:29:49 +03:00
2019-08-23 11:41:06 +02:00
2020-09-15 14:26:16 +02:00
2021-08-11 10:35:47 +02:00
2021-07-19 15:59:11 +02:00
2021-08-12 11:57:50 +02:00
2021-06-18 18:09:27 +01:00
2021-01-04 09:46:54 -05:00
2020-08-28 11:14:43 +02:00
2017-03-23 22:37:17 +01:00
2021-08-11 10:35:47 +02:00
2020-12-04 12:56:05 +01:00
2020-09-18 14:28:32 +02:00
2021-08-11 10:35:47 +02:00
2020-06-24 13:13:44 +02:00
2020-06-24 13:13:44 +02:00
2020-06-24 13:13:44 +02:00
2020-06-24 13:13:44 +02:00
2020-06-24 13:13:44 +02:00
2020-06-24 13:13:44 +02:00
2021-05-29 11:33:13 +02:00
2021-05-29 11:33:13 +02:00
2021-05-29 11:33:13 +02:00
2020-06-24 13:13:44 +02:00
2020-06-24 13:13:44 +02:00
2021-11-26 14:10:11 +01:00
2020-08-28 11:14:43 +02:00
2020-06-24 13:13:44 +02:00
2021-09-01 16:09:23 +02:00
2020-06-24 13:13:44 +02:00
2021-08-11 10:35:47 +02:00
2021-03-01 13:29:49 +03:00
2020-06-24 13:13:44 +02:00
2020-06-24 13:13:44 +02:00
2020-06-24 13:13:44 +02:00
2020-02-03 22:52:20 +01:00
2022-03-01 00:00:22 +03:00
2022-08-30 07:46:32 -04:00
2020-06-24 13:13:44 +02:00
2020-06-24 13:13:44 +02:00
2020-06-24 13:13:44 +02:00
2018-10-08 13:16:23 +02:00
2020-01-02 11:14:00 +01:00
2020-09-15 14:26:16 +02:00
2020-09-15 14:26:16 +02:00
2020-04-23 10:30:33 +02:00
2019-09-23 17:17:52 +02:00
2021-05-18 17:20:20 +02:00
2020-11-25 17:04:07 +01:00
2020-12-07 12:36:09 +01:00
2020-11-30 14:23:54 +01:00
2020-11-25 17:04:07 +01:00
2019-09-16 13:52:52 +02:00
2020-08-09 22:03:36 +02:00
2020-09-15 14:26:16 +02:00
2019-09-16 11:38:35 +02:00
2019-09-16 13:02:32 +02:00
2020-02-03 22:52:20 +01:00
2019-09-23 14:52:32 +02:00
2022-08-30 07:46:32 -04:00
2022-08-30 07:46:32 -04:00
2020-08-09 22:03:36 +02:00
2020-08-09 22:03:36 +02:00