ext-pmmpthread icon indicating copy to clipboard operation
ext-pmmpthread copied to clipboard

Copy mutable resolved constant data for immutable classes

Open dktapps opened this issue 2 years ago • 0 comments

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.

dktapps avatar Jun 22 '23 13:06 dktapps