[php-src] Issue #15882: GNU Readline should be replaced with libedit
| From: | petk | Date: | Sat, 14 Sep 2024 13:26:56 +0000 |
| Subject: | [php-src] Issue #15882: GNU Readline should be replaced with libedit | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-247782@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/15882
Author: petk
### Description
The following when using Autotools build system:
```php
./buildconf
./configure --with-readline
# or ./configure --with-readline --enable-phpdbg-readline
make
```
Results in successful build, but the linked library GNU Readline is licensed under the GNU GPL 3
license, which means that PHP then shouldn't be distributed to anyone. PHP provides linking
with the libedit library (--with-libedit) as a replacement in this case. However, build system
should not contain such issues. This is not that obvious for people just starting to build PHP and
trying to provide it to other users.
There is https://github.com/php/php-src/pull/13184 where
the GNU Readline is replaced with libedit only.
Should we target PHP 8.4?
### PHP Version
any
### Operating System
*nix