Re: Consensus gathering: allowing unsetting of backed property hooks
| From: | Ilija Tovilo | Date: | Wed, 26 Feb 2025 16:03:09 +0000 |
| Subject: | Re: Consensus gathering: allowing unsetting of backed property hooks | ||
| References: | 1 2 3 4 5 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-126513@lists.php.net to get a copy of this message | ||
On Wed, Feb 26, 2025 at 2:02 PM Rob Landers <rob@bottled.codes> wrote:
>
> I do think it makes sense to have an unset hook though, so long as it is thought out well. For
> example, would the unset hook be called automatically during garbage collection?
I would be very wary of adding more ways for destruction to be
observable. Destructors themselves cause enough issues in the engine
as is.
Ilija