[php-src] Issue #16077: Engine calls to private destructors cause errors

From: Date: Thu, 26 Sep 2024 19:10:10 +0000
Subject: [php-src] Issue #16077: Engine calls to private destructors cause errors
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-247917@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/16077 Author: jnvsor ### Description https://3v4l.org/bKijA While private magic method declarations result in a visibility warning, they still work when invoked by the engine as in the cases of __debugInfo (and __sleep since 8.1) Private destructors however cause errors whenever an instance goes out of scope. The engine should always be able to invoke a destructor when destroying an instance. ### PHP Version 8.4 ### Operating System _No response_

« previous php.bugs (#247917) next »