array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'pt_BR', ), 'this' => array ( 0 => 'enchant.installation.php', 1 => 'Instalação', ), 'up' => array ( 0 => 'enchant.setup.php', 1 => 'Instalação/Configuração', ), 'prev' => array ( 0 => 'enchant.requirements.php', 1 => 'Dependências', ), 'next' => array ( 0 => 'enchant.configuration.php', 1 => 'Configurações em Execução', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/enchant/configure.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
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.
Nota: Additional setup on Windows
Para que esta extensão funcione, existem arquivos DLL que devem estar disponíveis no PATH do sistema Windows. Para saber como fazer isso, veja a FAQ intitulada "Como eu adiciono o meu diretório PHP ao PATH do Windows". Embora copiar arquivos DLL da pasta do PHP para o diretório system do Windows também funcione (porque o diretório system está, por padrão, no PATH do sistema), isso não é recomendado. Esta extensão requer que os seguintes arquivos estejam no 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.