Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove GNU Readline in favor of libedit #3745

Merged
merged 2 commits into from
Sep 23, 2024
Merged

Conversation

petk
Copy link
Member

@petk petk commented Sep 14, 2024

The libedit library is a non-GPL replacement for the GNU Readline library.

The libedit library is a non-GPL replacement for the GNU Readline
library.
Comment on lines 6 to 8
To use these functions you must compile the CGI or CLI version of PHP
with readline support. You need to configure PHP
<option role="configure">--with-readline[=DIR]</option>.
If you want to use the libedit readline replacement, configure PHP
<option role="configure">--with-libedit[=DIR]</option>.
<option role="configure">--with-readline</option>.
Copy link
Member

Choose a reason for hiding this comment

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

Note the documentation shouldn't use personalization (i.e. using "you") maybe you could fix the text at the same time?

This feels like this should probably use some standard wording/an existing XML entity

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed in the next commit. I'm not sure I know what "standard wording/an existing XML entity" means here.

@Girgias Girgias merged commit b9582e1 into php:master Sep 23, 2024
2 checks passed
@petk petk deleted the patch-readline branch September 24, 2024 18:16
@cmb69
Copy link
Member

cmb69 commented Nov 15, 2024

What is the actual status here? Apparently, the constant READLINE_LIB has not been removed, and there are still --with-libedit and --with-readline[=DIR]. Ah, php/php-src#15882 is still open, and php/php-src#13184 has not been merged. So the documentation changes need to be reverted for now.

@petk
Copy link
Member Author

petk commented Nov 15, 2024

Yes, this was merged a bit too quickly. The code related PR wasn't merged to PHP 8.4 yet. Then let's merge it in PHP 8.5 or something.

cmb69 added a commit that referenced this pull request Nov 15, 2024
This reverts commit b9582e1, and the
follow-up f8e440f, because the change
didn't make it into PHP 8.4, and is still pending.
@cmb69
Copy link
Member

cmb69 commented Nov 15, 2024

Reverted via 51779f7.

I think we should go ahead with the removal of libreadline support in php-src.

@petk
Copy link
Member Author

petk commented Nov 15, 2024

I also think it's about time. Just for the info, it will be 6 years since the initial attempt to fix this and almost 1 year since the 2nd attempt. I'm actually quite amazed how long such issues take. And there is at least one more such issue - the gdbm library. At least from my current checks.

@cmb69
Copy link
Member

cmb69 commented Nov 15, 2024

I'm actually quite amazed how long such issues take.

Someone needs to push. :)

And there is at least one more such issue - the gdbm library.

I have no problems with dropping this one. Should probably also drop support for ancient Berkeley DB 1 - 3 (can't imagine anybody using these for years).

@petk petk restored the patch-readline branch November 19, 2024 20:17
@petk
Copy link
Member Author

petk commented Nov 19, 2024

This is really difficult to keep track of.

@petk petk deleted the patch-readline branch November 19, 2024 20:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants