[php-src] Issue #12373: Segmentation fault when running a PHPUnit test containing mocked object
| From: | DragosMocrii | Date: | Fri, 06 Oct 2023 17:33:51 +0000 |
| Subject: | [php-src] Issue #12373: Segmentation fault when running a PHPUnit test containing mocked object | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-245510@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/12373
Author: DragosMocrii
### Description
Please see this repository on how to reproduce this issue: https://github.com/DragosMocrii/php-bug-destruct-segfault
The segmentation fault occurs when running a PHPUnit test containing a mocked object of a class
containing a
__destruct method, in which a public method with a self
return type is called.
Issue is present with: PHP 8.2.10, PHP 8.1.23.
### PHP Version
8.2.10
### Operating System
Ubuntu 22.04