[php-src] PR #12017: Replace old/deprecated pspell interface with aspell
| From: | petk | Date: | Tue, 22 Aug 2023 10:54:07 +0000 |
| Subject: | [php-src] PR #12017: Replace old/deprecated pspell interface with aspell | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-23437@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/12017
Author: petk
The [Pspell library][1] was superseded by [GNU Aspell library][2] and Pspell was integrated into it.
The GNU Aspell library includes a simple interface for the old pspell library due to backwards
compatibility ([pspell.h][3]) which only defines old pspell_ symbol as aspell_ ones. Instead of
using the old pspell symbol names, this patch uses the current Aspell.
The libpspell-dev on some *nix systems is part of the GNU Aspell. So the libaspell-dev is
automatically installed when installing libpspell-dev. Meaning, the requirements will work also for
build systems where libpspell-dev is installed, however the libaspell-dev should be encouraged to be
used instead.
Additionally:
- Unused custom constant PSPELL_LARGEST_WORD is removed.
[1]: https://sourceforge.net/projects/pspell/
[2]: http://aspell.net/
[3]: https://github.com/GNUAspell/aspell/blob/e8eb747/interfaces/cc/pspell.h
I'm not sure if this is for PHP-8.3, otherwise, there isn't any BC break here. I'm
just noting it as a possible simplification. And it can work on all systems out there as was
previously. PHP Windows build, currently doesn't have ext/pspell support - the ext/enchant
seems to be used and recommended there.
NEWS/UPGRADING.INTERNALS:
```
* Old Pspell interface has been updated with GNU Aspell. When using the
--with-pspell[=path/to/aspell/pspell], path should include the aspell.h file
which is located one level above the pspell/pspell.h:
--with-pspell[=path/to/aspell]. Instead of the libpspell dependency, only the
libapspell can be now used.
```