[php-src] PR #22718: Added readonly reinitable helper
| From: | NickSdot | Date: | Mon, 13 Jul 2026 20:35:49 +0000 |
| Subject: | [php-src] PR #22718: Added readonly reinitable helper | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-37026@lists.php.net to get a copy of this message | ||
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