Bug #79878 [NEW]: Assertion failure with constexpr attribute and constructor promotion

From: Date: Tue, 21 Jul 2020 14:44:18 +0000
Subject: Bug #79878 [NEW]: Assertion failure with constexpr attribute and constructor promotion
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-228161@lists.php.net to get a copy of this message
From: nikic Operating system: PHP version: 8.0Git-2020-07-21 (Git) Package: Scripting Engine problem Bug Type: Bug Bug description:Assertion failure with constexpr attribute and constructor promotion 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 bug report at https://bugs.php.net/bug.php?id=79878&edit=1 -- Fix committed: https://bugs.php.net/fix.php?id=79878&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=79878&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=79878&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=79878&r=needscript Try newer version: https://bugs.php.net/fix.php?id=79878&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=79878&r=support Expected behavior: https://bugs.php.net/fix.php?id=79878&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=79878&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=79878&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=79878&r=globals PHP version support discontinued: https://bugs.php.net/fix.php?id=79878&r=phptooold Daylight Savings: https://bugs.php.net/fix.php?id=79878&r=dst IIS Stability: https://bugs.php.net/fix.php?id=79878&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=79878&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=79878&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=79878&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=79878&r=mysqlcfg

« previous php.bugs (#228161) next »