Aspell + PHP + Windows was giving me just crazy crashes with this simple test file:
<?php
$pspell_link = pspell_new("en");
?>
Running "php -f test.php" directly from a DOS prompt shed some light:
----------------
The file "C:\Program Files\Aspell\data/iso8859-1.dat" can not be opened for reading.pell\dict/en-only.rws:
----------------
To fix it I needed to "dos2unix" all the files in Aspell's C:\Program Files\Aspell\data\ directory. (Convert them from CRLF to just LF line endings).
Instalação
If you have the libraries needed add the --with-pspell[=dir] option when compiling PHP.
Nota: Note to Win32 Users
Para esta extensão funcionar, existem arquivos DLL que devem estar disponíveis no PATH do sistema Windows. Para saber como fazer isso, veja o FAQ intitulado "Como eu adiciono o meu diretório PHP no PATH no Windows". Embora copiando arquivos DLL da pasta do PHP no diretório system do Windows também funcione (porque o diretório system está por padrão no PATH do sistema), isto não é recomendado. Esta extensão requer que os seguintes arquivos estejam no PATH: aspell-15.dll from the bin folder of the aspell installation.
Win32 support is available only in PHP 4.3.3 and later versions. Also, at least aspell version 0.50 is required.
