Dutch PHP Conference 2025 - Call For Papers

Встановлення

Provided the required libraries are installed, users may enable enchant by adding the --with-enchant[=dir] option when compiling PHP.

Windows users must enable php_enchant.dll in order to use this extension.

Зауваження: Additional setup on Windows

Щоб це розширення працювало у Windows, системна змінна PATH повинна мати доступ до файлів DLL. Як це зробити, написано в ЧаПах під назвою "Як додати PHP-теку до PATH у Windows". Хоча копіювання DLL-файлів з PHP-теки в системну теку Windows теж спрацює (тому, що системна тека зазвичай є в змінній PATH), проте цього не слід робити. Це розширення вимагає, щоб наступні файли були в PATH: libenchant.dll, glib-2.dll, gmodule-2.dll.

Furthermore, it is necessary to copy at least one of the shipped providers in lib\enchant to \usr\local\lib\enchant-2 (which is an absolute path from the root of the current drive). Prior to PHP 8.0.0, i.e. using Enchant v1, the providers had to be copied to C:\enchant_plugins instead, where this path could be customized by creating the registry value HKEY_CURRENT_USER\SOFTWARE\Enchant\Config\Module_Dir and setting it to the desired path.

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top