[php-src] Issue #20001: Delaying destructors

From: Date: Tue, 30 Sep 2025 08:15:44 +0000
Subject: [php-src] Issue #20001: Delaying destructors
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-250946@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/20001 Author: arnaud-lb ### Description Due to destructors, zval_ptr_dtor() may have more effects than just freeing the given zval. This is the cause of bugs and workarounds. These bugs and workarounds could be avoided by delaying destructors (and possible GC runs, or destructor calls in these runs) until a safepoint is reached. If we use vm interrupts as safepoints, this would delay destructors until the next branch/loop or function call (this should be defined more precisely), which seems reasonable. I'm creating this issue to aggregate related issues. ### PHP Version ```plain - ``` ### Operating System _No response_

« previous php.bugs (#250946) next »