Bug #79878 [Opn->Dup]: Assertion failure with constexpr attribute and constructor promotion

From: Date: Thu, 30 Jul 2020 09:09:14 +0000
Subject: Bug #79878 [Opn->Dup]: Assertion failure with constexpr attribute and constructor promotion
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-228296@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=79878&edit=1 ID: 79878 Updated by: nikic@php.net Reported by: nikic@php.net Summary: Assertion failure with constexpr attribute and constructor promotion -Status: Open +Status: Duplicate Type: Bug Package: Scripting Engine problem PHP Version: 8.0Git-2020-07-21 (Git) Block user comment: N Private report: N New Comment: Duplicate of bug #79897. Previous Comments: ------------------------------------------------------------------------ [2020-07-25 11:38:44] nikic@php.net Related To: Bug #79897 ------------------------------------------------------------------------ [2020-07-21 14:44:18] nikic@php.net Description: ------------ <?php class Test { public function __construct( <<A(B)>> public $param ) {} } We try to compile attribute A(B) twice. However, constant expression compilation is a destructive process, so this asserts. We should probably only compile once and then copy them from the param to the property. This is oss-fuzz #24208. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=79878&edit=1

« previous php.bugs (#228296) next »