Re: [RFC] Lazy Objects

From: Date: Thu, 25 Jul 2024 15:43:35 +0000
Subject: Re: [RFC] Lazy Objects
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15  Groups: php.internals 
Request: Send a blank email to internals+get-124590@lists.php.net to get a copy of this message
Hi On 7/25/24 17:40, Arnaud Le Blanc wrote:
Thank you! We have updated the RFC accordingly.
LGTM :-)
5. In the explanation of "ReflectionClass::markLazyObjectAsInitialized()", it says:
Its behavior is the same as described for Ghost Objects in the Initialization Sequence section, except that the initializer is not called.
This means that calling markLazyObjectAsInitialized() on a lazy proxy turns it into a regular object of the proxy class, as if newInstanceWithoutConstructor() was used, right?
Yes, except for the value of properties that were already initialized.
Right, thank you for the clarification. Best regards Tim Düsterhus

« previous php.internals (#124590) next »