[php-src] Issue #8361: New in initializers self reference causes SIGSEGV error

From: Date: Wed, 13 Apr 2022 11:04:18 +0000
Subject: [php-src] Issue #8361: New in initializers self reference causes SIGSEGV error
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-240918@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/8361 Author: carloscz ### Description The following code: ```php <?php class A { function __construct($a = new A()) { } } new A(); ``` Resulted in this output: ``` (none) with exit code 139 - SIGSEGV (Address boundary error) ``` But I expected this output instead: ``` infinite loop/recursion error/stack depth error/whatever more descriptive ``` ### PHP Version PHP 8.1.4 ### Operating System Ubuntu 20.04

« previous php.bugs (#240918) next »