Skip to content

ext/readline: Fix non-ASCII completion append characters in readline_info() - #24263

Closed
LamentXU123 wants to merge 1 commit into
php:PHP-8.4from
LamentXU123:readline--fix
Closed

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

Conversation

@LamentXU123

@LamentXU123 LamentXU123 commented Oct 11, 2026 •

Copy link
Copy Markdown
Member

I thought this was a typo initially and I was intended to fix this as a refactor, but it comes out this can cause bugs. This shouldn't be negative.

Store the first byte as unsigned char to keep completion_append_character
within the valid range of the one-character string table.

@iliaal iliaal left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

LamentXU123 added a commit that referenced this pull request Oct 12, 2026
* PHP-8.6:
  ext/readline: Fix non-ASCII completion append characters in readline_info() (#24263)
@LamentXU123

Copy link
Copy Markdown
Member Author

Thanks!

@LamentXU123
LamentXU123 deleted the readline--fix branch October 12, 2026 17:10
StephenWall pushed a commit to StephenWall/php-src that referenced this pull request Oct 12, 2026
* PHP-8.4:
  ext/readline: Fix non-ASCII completion append characters in readline_info() (php#24263)
StephenWall pushed a commit to StephenWall/php-src that referenced this pull request Oct 12, 2026
* PHP-8.5:
  ext/readline: Fix non-ASCII completion append characters in readline_info() (php#24263)
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.

2 participants