Skip to content

Copy mutable resolved constant data for immutable classes #124

@dktapps

Description

@dktapps

Recently, some LB code had a problem with OPcache, because of IS_CONSTANT_AST constants being used in immutable classes. These AST were referencing constants which didn't exist on the target worker. This would have been fine (since the constants would normally be resolved during class compile (I think?), but since the classes were inherited without copying their resolved constant data, these constant references suddenly stopped working on PHP 8.1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions