Skip to content

Commit 7f5d2d8

Browse files
committed
test(php-lsp): regression guards for aliased-trait name-collision OOMs
Two reported indexer OOMs reduce to the same self-flattening loop the trait-uses-itself fix closed (self-flatten short-circuit + snapshotted loop bound in flatten_trait_into_class): - a trait whose name collides with an aliased `use ... as` import it composes (DeusData#765's exact single-file reproducer) — the alias canonicalizes onto the enclosing trait via the short-name fallback - a class sharing its short name with an aliased trait import (DeusData#951's reproducer, reduced to one file: the trait definition being unavailable is what forces the short-name fallback onto the class) Both fixtures were verified RED against the pre-guard code (each hangs the suite within the 90s alarm when the two guards are reverted, each independently as the first test run) and GREEN with the guards in place. Landing them as permanent regression guards; the issues close as fixed-by-the-DeusData#920-pair. Closes DeusData#765 Closes DeusData#951 Signed-off-by: Martin Vogel <martin.vogel.tech@gmail.com>
1 parent 23fd0e8 commit 7f5d2d8

1 file changed

Lines changed: 1753 additions & 1908 deletions

File tree

0 commit comments

Comments
 (0)