php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #79878 Assertion failure with constexpr attribute and constructor promotion
Submitted: 2020-07-21 14:44 UTC Modified: 2020-07-30 09:09 UTC
From: nikic@php.net Assigned:
Status: Duplicate Package: Scripting Engine problem
PHP Version: 8.0Git-2020-07-21 (Git) OS:
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: nikic@php.net
New email:
PHP Version: OS:

 

 [2020-07-21 14:44 UTC] 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.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2020-07-30 09:09 UTC] nikic@php.net
-Status: Open +Status: Duplicate
 [2020-07-30 09:09 UTC] nikic@php.net
Duplicate of bug #79897.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 17:01:28 2024 UTC