[php-src] PR #16344: Fix setRawValueWithoutLazyInitialization() / skipLazyInitialization() on initialized proxy

From: Date: Thu, 10 Oct 2024 15:46:07 +0000
Subject: [php-src] PR #16344: Fix setRawValueWithoutLazyInitialization() / skipLazyInitialization() on initialized proxy
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-29133@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/16344 Author: arnaud-lb skipLazyInitialization() removes the lazy flag of a property and initializes it to its default value. If the property was already initialized, it has no effect. However, initialized proxies have all their properties marked as lazy, but skipLazyInitialization() should not initialize them. Similarly, setRawValueWithoutLazyInitialization() should not set the value on initialized proxies. Here I make sure to produce the effect on the real instance rather than the proxy. NB: It's possible that the real instance is also a proxy. In this case I fetch its real instance again, and the affected object is the deepest instance.

« previous php.git-pulls (#29133) next »