Skip to content

ext/readline: Fix class constant completion in readline interactive shell - #23218

Open
LamentXU123 wants to merge 1 commit into
php:PHP-8.4from
LamentXU123:bugfix-readline
Open

ext/readline: Fix class constant completion in readline interactive shell#23218
LamentXU123 wants to merge 1 commit into
php:PHP-8.4from
LamentXU123:bugfix-readline

Conversation

@LamentXU123

@LamentXU123 LamentXU123 commented Aug 11, 2026

Copy link
Copy Markdown
Member

See #22994 (comment)_

This bug is really interesting! php -a class constant completion passed the full ClassName::PREFIX string to the constant completion generator. And textlen had already been shortened to the part after ::.

This made constants match against the leading characters of the class names. For example, Foo::Ze<TAB> could complete to Foo::FooBar instead of Foo::Zed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant