[GIT-PULLS] [php-src] PR #22718: Added readonly reinitable helper
[email protected] (NickSdot)
| Newsgroups | php.git-pulls |
|---|---|
| Message-ID | <zI40K0GMrhlQ9IbX5r4RCW1GG1fwnyRe6HNjee4B5kY@main.internal.php.net> |
Pull Request: https://github.com/php/php-src/pull/22718 Author: NickSdot Follow up to https://github.com/php/php-src/pull/22654 as discussed in https://github.com/php/php-src/pull/22588#issuecomment-4962088004. Added `zend_object_set_properties_reinitable()` to centralise temporarily allowing reinitialisation of initialised readonly properties during controlled operations such as cloning and unserialisation. cc @TimWolla