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