-
Notifications
You must be signed in to change notification settings - Fork 7.8k
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
Drop support for libreadline #3823
Conversation
Notice: if merged, I plan to add a deprecation warning in 7.4 |
Looks like you'll have to install libedit on Travis. I'm personally fine with making this change. Supporting two different libraries with subtly different behavior and different feature set is not a good idea. If libedit is available everywhere, I don't see a disadvantage to normalizing on it. |
c64922b
to
256d4c4
Compare
|
256d4c4
to
3dff2c0
Compare
libreadline is GPL, so incompatible with PHP
3dff2c0
to
5256d35
Compare
Rebased and travis is happy :) |
@remicollet What is the status of this removal? |
@remicollet do you want this still to be merged and can you rebase on current master? |
@remicollet this looks like it ought to be taken care of, the rebase looks non-trivial and I don't want to mess it up .... Hopefully we can get this sorted for 8.1, I'll add a milestone so that eyes are on it ... |
Differred, as need to be rebased... |
Readline library is not compatible with PHP license-wise and shouldn't be compiled into the executable. This can be simplified by using the libedit library with pkgconf determining its availability. This is a continuation of php#3823 and other discussions in the past.
Continuing this one here: #13184 |
This removes the GNU Readline library integration and relies on the libedit library if present. Issue is that there are several ext/readline libraries and GNU Readline license (GNU GPL 3) is not compatible with the PHP license. There was a similar attempt to fix this (phpGH-3823) and now fix continues here. Changes: - `--with-libedit` configure option removed (only `--with-readline` stays) This also fixes the phpdbg readline integration on *nix systems (using libedit library) for history (up/down keys and similar nice features).
This removes the GNU Readline library integration and relies on the libedit library if present. Issue is that there are several ext/readline libraries and GNU Readline license (GNU GPL 3) is not compatible with the PHP license. There was a similar attempt to fix this (phpGH-3823) and now fix continues here. Changes: - `--with-libedit` configure option removed (only `--with-readline` stays) - readline extension tests fixed: those required by only readline library removed, added missing skip reasons, some functions are always available, etc. - New PHP_SETUP_EDIT Autoconf macro that finds libedit This also fixes the phpdbg readline integration on *nix systems (using libedit library) for history (up/down keys and similar nice features) to not produce compile errors: ./configure --enable-phpdbg-readline make undefined reference to 'readline' undefined reference to 'add_history'
This removes the GNU Readline library integration and relies on the libedit library if present. Issue is that there are several ext/readline libraries and GNU Readline license (GNU GPL 3) is not compatible with the PHP license. There was a similar attempt to fix this (phpGH-3823) and now fix continues here. Changes: - `--with-libedit` configure option removed (only `--with-readline` stays) - readline extension tests fixed: those required by only readline library removed, added missing skip reasons, some functions are always available, etc. - New PHP_SETUP_EDIT Autoconf macro that finds libedit This also fixes the phpdbg readline integration on *nix systems (using libedit library) for history (up/down keys and similar nice features) to not produce compile errors: ./configure --enable-phpdbg-readline make undefined reference to 'readline' undefined reference to 'add_history'
libreadline is GPL, so incompatible with PHP
Notice: Windows already only support libedit