[php-src] PR #25653: ext/reflection: Don't call destructor when constructor is not public in newInstance(Args)()
| From: | ndossche | Date: | Sun, 22 Nov 2026 15:16:10 +0000 |
| Subject: | [php-src] PR #25653: ext/reflection: Don't call destructor when constructor is not public in newInstance(Args)() | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-40896@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/25653
Author: ndossche
Normally, an object whose ctor failed would never run its dtor, but for reflection it did when the
ctor was not public.
To solve this we mark the object as ctor-failed.
Found by a SAST tool I'm developing. Was on my backlog for some time.